Benchmark

4 articles

nodejs13 min read

Node 22 vs 24 vs 26: what actually got faster

Seven workloads under Node 22, 24 and 26 on one machine, interleaved to cancel drift. Only two differences survived the noise: JSON.stringify is 25% faster, and Map insertion moved around rather than improving.

Read →
nodejs13 min read

What AsyncLocalStorage actually costs, measured

AsyncLocalStorage adds about 250 nanoseconds per request on Node 24 and 26, down from 510 on Node 22. Reading the store costs roughly 25 ns a call. Measured across three versions with the script included.

Read →
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 →