Lab Head to head · runtime benchmark
Bun vs Node.js benchmark: Bun 1.4.5 against Node.js 26.13.1 on the same work
Bun 1.4.5 and Node.js 26.13.1, each the newest release of its newest line, measured on the same machine with the same work in one run, so both meet the same conditions.
- Last run Nov 26, 2026
- Compared Node.js 26.13.1 and Bun 1.4.5
- Setup one machine, the same work
- 48.5% fasterRegular expressions over 2.4 MB of text7.80 ms → 4.02 ms · Node.js 26.13.1 → Bun 1.4.5
- 46.9% fasterSort 300,000 numbers95.6 ms → 50.7 ms · Node.js 26.13.1 → Bun 1.4.5
- 41.6% fasterJSON parse and stringify, 20,000 objects39.3 ms → 23.0 ms · Node.js 26.13.1 → Bun 1.4.5
- 3 of 6workloads with no clear differencea change counts at 10% or more, twice the spread
- 14.7%largest self-test differencethe same product twice in one run, none of them clear
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 Bun 1.4.5 with Node.js 26.13.1.
| Workload | Node.js 26.13.1 | Bun 1.4.5 | Node.js 26.13.1 → Bun 1.4.5 |
|---|---|---|---|
| JSON parse and stringify, 20,000 objects | 39.3 ms ±5.3% | 23.0 ms ±3.2% | 41.6% faster |
| Regular expressions over 2.4 MB of text | 7.80 ms ±3.5% | 4.02 ms ±6.3% | 48.5% faster |
| SHA-256 of 32 MB | 15.1 ms ±19.0% | 15.9 ms ±13.7% | no clear difference |
| Sort 300,000 numbers | 95.6 ms ±6.0% | 50.7 ms ±7.0% | 46.9% faster |
| Map with 300,000 keys | 69.0 ms ±7.0% | 82.0 ms ±10.2% | no clear difference |
| String building and splitting | 39.1 ms ±20.2% | 27.4 ms ±5.9% | no clear difference |
Measured Nov 26, 2026 on our own machine. How we tested · Raw data (JSON)
More on Bun vs 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
- Node.js 26.13.1
node:26.13.1-slimsha256:e6bedef21767… - Bun 1.4.5
oven/bun:1.4.5-slimsha256:b780593f3e10…
Self-test Node.js 26.13.1 against Node.js 26.13.1 in two containers: the largest difference was 14.7%, none of them clear.
Method
- Median of 11 rounds after 1 warm-up round; the product that starts each round rotates
- Each is the newest release of its newest line on 2026-11-26, run as it ships, both in one run
- Both run the same script, node-core.js: Node.js as node -, Bun as bun run -
- Start-up is left out: each runtime starts its script's clock at another moment (Node.js at its process start), so that figure does not compare across runtimes
- 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
- The same small single-threaded kernels as our Node.js test, run by bun run -; nothing is read from or written to disk
Reproduce it
cat node-core.js | docker run --rm -i --network none --read-only --user 10001:10001 --tmpfs /tmp:exec node:26.13.1-slim node -
cat node-core.js | docker run --rm -i --network none --read-only --user 10001:10001 --tmpfs /tmp:exec --tmpfs /home/check:exec,uid=10001 -e HOME=/home/check oven/bun:1.4.5-slim bun run -
The script: https://thestacksentinel.com/lab/scripts/node-core.js.txt (save it as node-core.js)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.
Official pages on Node.js 26.13.1 and Bun 1.4.5
- github.com /nodejs/node/releases/tag/v26.13.1
- github.com /oven-sh/bun/releases/tag/bun-v1.4.5