3 ms·
There was some discussion about sync versus async in this thread: https://news.ycombinator.com/item?id=30170626 https://news.ycombinator.com/item?id=30170626, s
by gabrielsroka 5y ago
There was some discussion about sync versus async in this thread: https://news.ycombinator.com/item?id=30170626 https://news.ycombinator.com/item?id=30170626, so I thought I'd create more complete examples.
The async version is about 30 times faster than the sync version when you set the total to a high number, the maximum is about 500. Performance tables are in the code itself. https://github.com/gabrielsroka/hn https://github.com/gabrielsroka/hn