Lab Tracker · runtime benchmark

Node.js performance by version: 18 to 26, benchmarked

5 versions of Node.js, from 18 to 26, measured on the same machine with the same script in one run, so every version meets the same conditions.

  • Last run Nov 23, 2026
  • Versions 18.20.8, 20.20.2, 22.23.5, 24.22.3 and 26.13.1
  • Setup one machine, one script

See the results How we tested Raw data (JSON)

Every workload, every version

Median of the rounds, ± the spread between them. Green and amber cells differ by 10% or more from the first value of a row with a clear change; the last column compares 26.13.1 with 18.20.8.

Every result: the median of each version and the change from 18.20.8 to 26.13.1
Workload18.20.820.20.222.23.524.22.326.13.118.20.8 → 26.13.1
Start-up18.1 ms ±5.2%17.6 ms ±5.9%17.5 ms ±7.3%19.6 ms ±2.3%18.5 ms ±9.0% no clear difference
JSON parse and stringify, 20,000 objects69.7 ms ±3.4%61.9 ms ±4.2%56.3 ms ±1.7%48.2 ms ±3.4%37.7 ms ±3.6% 45.9% faster
Regular expressions over 2.4 MB of text9.26 ms ±16.1%9.15 ms ±4.2%9.23 ms ±5.8%7.61 ms ±2.6%7.67 ms ±5.1% no clear difference
SHA-256 of 32 MB15.5 ms ±14.8%14.2 ms ±12.3%14.6 ms ±4.4%14.3 ms ±6.6%14.8 ms ±16.9% no clear difference
Sort 300,000 numbers84.0 ms ±5.1%86.4 ms ±3.1%81.9 ms ±4.6%93.4 ms ±6.5%92.8 ms ±2.3% 10.4% slower
Map with 300,000 keys108 ms ±6.7%94.8 ms ±3.0%87.5 ms ±8.0%71.4 ms ±3.9%70.4 ms ±8.0% 34.8% faster
String building and splitting59.6 ms ±1.3%48.8 ms ±3.0%39.2 ms ±21.4%59.3 ms ±2.1%33.1 ms ±16.0% 44.4% faster

Defaults, 18.20.8 → 26.13.1

  • 207 compared
  • 6 changed
  • 39 new
  • 6 gone

runtime defaults, globals and built-in modules; 207 entries in both, 6 changed, 39 new, 6 gone.

Default18.20.826.13.1
buffer.maxLength42949672969007199254740991
buffer.poolSize819265536
http.globalAgent.keepAlivefalsetrue
net.autoSelectFamilyfalsetrue
net.autoSelectFamilyAttemptTimeout250500
stream.highWaterMark1638465536

Gone in 26.13.1: module:_stream_duplex, module:_stream_passthrough, module:_stream_readable, module:_stream_transform, module:_stream_wrap, module:_stream_writable.

New in 26.13.1: global:AsyncDisposableStack, global:CloseEvent, global:Crypto, global:CryptoKey, global:CustomEvent, global:DisposableStack, global:ErrorEvent, global:File, global:Float16Array, global:Iterator, global:Navigator, global:PerformanceEntry, global:PerformanceMark, global:PerformanceMeasure, global:PerformanceObserver, global:PerformanceObserverEntryList, global:PerformanceResourceTiming, global:QuotaExceededError, global:Storage, global:SubtleCrypto, global:SuppressedError, global:Temporal, global:URLPattern, global:WebSocket, global:crypto, global:localStorage, global:navigator, global:sessionStorage, module:inspector/promises, module:node:ffi and 9 more in the raw data.

Measured Nov 23, 2026 on our own machine. How we tested · Raw data (JSON)

More on Node.js

How we tested

  • ProcessorAMD Ryzen 7 7800X3D (8 cores, 16 threads)
  • Memory32 GB RAM
  • SystemWindows 11 Pro, Docker Desktop (WSL 2)
  • ContainersDocker Engine 29.9.3

What we ran

  • 18.20.8 node:18.20.8-slim sha256:f9ab18e354e6…
  • 20.20.2 node:20.20.2-slim sha256:2cf067cfed83…
  • 22.23.5 node:22.23.5-slim sha256:e9f565d32859…
  • 24.22.3 node:24.22.3-slim sha256:dc26ae92c9fb…
  • 26.13.1 node:26.13.1-slim sha256:e6bedef21767…

Self-test 26.13.1 against 26.13.1 in two containers: the largest difference was 4.6%, none of them clear.

Method

  • Median of 11 rounds after 1 warm-up round; the version that starts each round rotates
  • Each version is the newest release of its line on 2026-11-23, run as it ships, all in one run
  • One process per round in each container: one warm-up call, then one timed call per workload
  • Small single-threaded kernels; nothing is read from or written to disk
Reproduce it
Commands
cat node-core.js | docker run --rm -i --network none --read-only --user 10001:10001 --tmpfs /tmp:exec node:26.13.1-slim node -
For the other versions use node:18.20.8-slim, node:20.20.2-slim, node:22.23.5-slim, node:24.22.3-slim.
The script: https://thestacksentinel.com/lab/scripts/node-core.js.txt (save it as node-core.js)
Defaults: the same command with https://thestacksentinel.com/lab/scripts/node-defaults.js.txt prints every DEFAULT line

Limits

  • One machine: an 8-core desktop CPU under Windows 11 and WSL 2; a Linux server may behave differently.
  • Small kernels, not an application: real services spend their time in I/O, frameworks and native modules.

Raw data (JSON) · How we test

Official pages on Node.js 26.13.1