How Much Memory Do You Need in 2024 to Run 1 Million Concurrent Tasks?
https://hez2010.github.io/async-runtimes-benchmarks-2024/
https://hez2010.github.io/async-runtimes-benchmarks-2024/
Comments
Go surprised me..
I've tried a couple ways using both Task.Delay() and Async.Sleep()
The latter method consumed 11 GB!
The latter implementation consumes only 200 MB, which is much more in-line with my expectations.
> a high number of concurrent tasks can consume a significant amount of memory
Is ~400 megabytes for a million tasks significant? Ok 2.5gigabytes for Go is a bit much.
But like if you have a million tasks is that amount of memory usage genuinely prohibitive?
The CPU to memory ratio will make this memory consumption totally irrelevant in a real world scenario.
Interesting benchmark anyway!
Hell yeah, programmatic parallelism has become so much more accessible to software devs where the barrier of entry is so much easier today.
I’ve been using a lot of Asyncio in Python and found it was no match to Go routines.
Weird but backed by numbers …
😁