- Fastify is a fast and low overhead web framework for Node.js.
- This package shows how fast it is compared to other JS frameworks: these benchmarks do not pretend to represent a real-world scenario, but they give a good indication of the framework overhead.
- The benchmarks are run automatically on GitHub actions, which means they run on virtual hardware that can suffer from the "noisy neighbor" effect; this means that the results can vary.
- For metrics (cold-start) see metrics.md
To be included in this list, the framework should captivate users' interest. We have identified the following minimal requirements:
- Ensure active usage: a minimum of 500 downloads per week
- Maintain an active repository with at least one event (comment, issue, PR) in the last month
- The framework must use the Node.js HTTP module
Clone this repo. Then
node ./benchmark [arguments (optional)]
-h: Help on how to use the tool.bench: Benchmark one or more modules.compare: Get comparative data for your benchmarks.
Create benchmark before comparing;
benchmark bench
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: linux x64 | 4 vCPUs | 15.6GB Mem
- Node:
v24.15.0 - Run: Mon May 11 2026 10:14:24 GMT+0000 (Coordinated Universal Time)
- Method:
autocannon -c 100 -d 40 -p 10 localhost:3000(two rounds; one to warm-up, one to measure)
| Version | Router | Requests/s | Latency (ms) | Throughput/Mb | |
|---|---|---|---|---|---|
| 0http | 4.4.0 | ✓ | 78438.4 | 12.30 | 13.99 |
| h3 | 1.15.11 | ✗ | 71424.0 | 13.49 | 12.74 |
| h3-router | 1.15.11 | ✓ | 70172.4 | 13.73 | 12.51 |
| restana | v6.0.0 | ✓ | 69442.8 | 13.85 | 17.48 |
| node-http | v24.15.0 | ✗ | 68692.4 | 14.02 | 12.25 |
| polka | 0.5.2 | ✓ | 68610.8 | 14.05 | 12.24 |
| fastify | 5.8.5 | ✓ | 68123.6 | 14.13 | 12.21 |
| micro | 10.0.1 | ✗ | 66347.6 | 14.60 | 11.83 |
| connect | 3.7.0 | ✗ | 64601.6 | 14.95 | 11.52 |
| connect-router | 2.2.0 | ✓ | 62184.0 | 15.53 | 11.09 |
| whatwg-node-server | 0.10.18 | ✗ | 58852.8 | 16.50 | 10.50 |
| hono | 4.12.18 | ✓ | 56719.2 | 17.10 | 9.30 |
| koa | 3.2.0 | ✗ | 52102.4 | 18.68 | 9.29 |
| koa-router | 15.5.0 | ✓ | 48355.2 | 20.17 | 8.62 |
| hapi | 21.4.9 | ✓ | 46098.4 | 21.23 | 8.22 |
| adonisjs | 7.8.1 | ✓ | 45736.0 | 21.35 | 8.16 |
| srvx | 0.11.15 | ✗ | 38863.2 | 25.23 | 7.56 |
| express | 5.2.1 | ✓ | 38773.6 | 25.27 | 6.91 |
| microrouter | 3.1.3 | ✓ | 35048.2 | 28.03 | 6.25 |
| express-with-middlewares | 5.2.1 | ✓ | 32132.6 | 30.63 | 11.95 |
| fastify-big-json | 5.8.5 | ✓ | 14877.6 | 66.66 | 171.17 |
| trpc-router | 11.17.0 | ✓ | 10722.0 | 92.67 | 2.44 |
| restify | 11.1.0 | ✓ | N/A | N/A | N/A |