A good part of the article is about a non-realistic microbenchmark (nobody spawns empty threads)..
Also measuring the performance difference with threads making some work would be more interesting IMHO.
Also measuring the performance difference with threads making some work would be more interesting IMHO.
I have another test I'm running with the same workload, but with more dynamically created threads (n keys dispatched to a pool of threads/goroutines until the key space is exhausted) but I haven't finished the threaded version for comparison yet.
It also shows that the overhead of a million threads is reasonable if you can actually handle them doing something.
That's the part I'm not so sure..