http benchmark
I use fastify-benchmarks and i add uNetworking/uWebSockets.js to this bench
-h
: Help on how to use the tool.compare
: Get comparative data for your benchmarks.
You may also compare all test results, at once, in a single table;
benchmark compare -t
You can also extend the comparison table with percentage values based on fastest result;
benchmark compare -p
- Machine: win32 x64 | 12 vCPUs | 15.9GB Mem
- Node:
v24.4.1
- Run: Thu Jul 24 2025 15:53:25 GMT+0200 (heure d’été d’Europe centrale)
- Method:
autocannon -c 50 -d 20 -p 5 localhost:3000
(two rounds; one to warm-up, one to measure)
Version | Router | Requests/s | Latency (ms) | Throughput/Mb | |
---|---|---|---|---|---|
uWebSockets | 20.52.0 | ✗ | 96089.6 | 2.09 | 14.39 |
polka | 0.5.2 | ✓ | 68679.2 | 3.20 | 9.17 |
fastify | 5.3.2 | ✓ | 65154.4 | 3.33 | 11.68 |
vanilla | 1.0.1 | ✗ | 65117.6 | 3.29 | 7.76 |
rayo | 1.4.6 | ✓ | 62564.0 | 3.45 | 8.35 |
express | 5.1.0 | ✓ | 39304.0 | 5.88 | 5.25 |
bun | 1.2.12 | ✗ | 25756.0 | 9.21 | 3.41 |
hono | 4.7.9 | ✗ | 22819.2 | 10.42 | 2.72 |
0http | 4.2.0 | ✓ | 148.0 | 9704.64 | 0.02 |
polkadot | 1.0.0 | ✗ | 138.9 | 9787.21 | 0.02 |
pure-http | 4.0.2 | ✗ | 0.6 | 8416.59 | 0.00 |