5 ms·
> I wish I could see the perf chart of these. For thread creation, the author of the original post said "somewhere between 10 and 20 microseconds". This matche
by sapiogram 2y ago
> I wish I could see the perf chart of these.
For thread creation, the author of the original post said "somewhere between 10 and 20 microseconds". This matches my own (very simple) benchmarks on my Ubuntu desktop, which was able to create and destroy just over 100k threads/second.
Depending on your use case, using a thread pool could mitigate this cost entirely.