Upgrading Node.js: What Changes Between LTS Lines, Measured
Every month we run Node.js 18.20.8, 20.20.2, 22.23.5, 24.22.3 and 26.13.1 on one machine with one script. Pick your upgrade below: it lists only the changes our test can tell from noise, the defaults that changed, and when your line ends.
- Ends firstNode.js 22April 30, 2027
- Newest LTS26.13.1Node.js 26 (Lithium) · until April 30, 2029
- Measured7workloads · November 23, 2026
Your Upgrade
24.22.3 → 26.13.12 faster
- JSON parse and stringify, 20,000 objects: 48.2 ms → 37.7 ms -21.8%
- String building and splitting: 59.3 ms → 33.1 ms -44.1%
5 other workloads: no clear change (under 10% or within twice the spread).
22.23.5 → 24.22.33 faster2 slower
- JSON parse and stringify, 20,000 objects: 56.3 ms → 48.2 ms -14.3%
- Regular expressions over 2.4 MB of text: 9.23 ms → 7.61 ms -17.6%
- Sort 300,000 numbers: 81.9 ms → 93.4 ms +13.9%
- Map with 300,000 keys: 87.5 ms → 71.4 ms -18.4%
- String building and splitting: 39.2 ms → 59.3 ms +51.5%
2 other workloads: no clear change (under 10% or within twice the spread).
22.23.5 → 26.13.13 faster1 slower
- JSON parse and stringify, 20,000 objects: 56.3 ms → 37.7 ms -33%
- Regular expressions over 2.4 MB of text: 9.23 ms → 7.67 ms -16.9%
- Sort 300,000 numbers: 81.9 ms → 92.8 ms +13.3%
- Map with 300,000 keys: 87.5 ms → 70.4 ms -19.6%
3 other workloads: no clear change (under 10% or within twice the spread).
20.20.2 → 22.23.5endedno clear speed change
No workload changed clearly between these two versions.
7 other workloads: no clear change (under 10% or within twice the spread).
20.20.2 → 26.13.1ended4 faster
- JSON parse and stringify, 20,000 objects: 61.9 ms → 37.7 ms -39.1%
- Regular expressions over 2.4 MB of text: 9.15 ms → 7.67 ms -16.1%
- Map with 300,000 keys: 94.8 ms → 70.4 ms -25.8%
- String building and splitting: 48.8 ms → 33.1 ms -32.1%
3 other workloads: no clear change (under 10% or within twice the spread).
18.20.8 → 20.20.22 faster
- JSON parse and stringify, 20,000 objects: 69.7 ms → 61.9 ms -11.1%
- String building and splitting: 59.6 ms → 48.8 ms -18.1%
5 other workloads: no clear change (under 10% or within twice the spread).
18.20.8 → 26.13.13 faster1 slower
- JSON parse and stringify, 20,000 objects: 69.7 ms → 37.7 ms -45.9%
- Sort 300,000 numbers: 84.0 ms → 92.8 ms +10.4%
- Map with 300,000 keys: 108 ms → 70.4 ms -34.8%
- String building and splitting: 59.6 ms → 33.1 ms -44.4%
3 other workloads: no clear change (under 10% or within twice the spread).
Defaults Between 18.20.8 and 26.13.1
Our test reads every runtime default, global and built-in module. Between the oldest and newest line we run, 6 defaults changed and 6 entries are gone. The monthly run from December on lists them for each step as well.
| Default | 18.20.8 | 26.13.1 |
|---|---|---|
buffer.maxLength | 4294967296 | 9007199254740991 |
buffer.poolSize | 8192 | 65536 |
http.globalAgent.keepAlive | false | true |
net.autoSelectFamily | false | true |
net.autoSelectFamilyAttemptTimeout | 250 | 500 |
stream.highWaterMark | 16384 | 65536 |
Gone in 26.13.1: _stream_duplex, _stream_passthrough, _stream_readable, _stream_transform, _stream_wrap, _stream_writable. Code that imports them breaks.
39 new in 26.13.1 globals and modules
AsyncDisposableStack, CloseEvent, Crypto, CryptoKey, CustomEvent, DisposableStack, ErrorEvent, File, Float16Array, Iterator, Navigator, PerformanceEntry, PerformanceMark, PerformanceMeasure, PerformanceObserver, PerformanceObserverEntryList, PerformanceResourceTiming, QuotaExceededError, Storage, SubtleCrypto, SuppressedError, Temporal, URLPattern, WebSocket, crypto, localStorage, navigator, sessionStorage, inspector/promises, node:ffi and 9 more in the raw data.
How We Measured
One script with 7 small workloads runs on every line's newest release in one run on one machine; each number is a median of the rounds, and a change counts only at 10% or more and at least twice the spread. Small kernels, not your application: test your own code before you switch. Method, every number and the raw data: Node.js performance by version: 18 to 26, benchmarked.
Each supported line has its own page: Node.js 26 (Lithium) · Node.js 24 (Krypton) · Node.js 22 (Jod).
Spotted a mistake? Report a correction.