Worker-threads

3 articles

nodejs13 min read

Worker threads: the break-even point, measured

A worker pool is 35 times slower than the main thread when each task needs 0.05 ms of CPU, and 3.5 times faster when each needs 222 ms. Twelve measured cases show where the line sits and why transfer beats structured clone.

Read →