- 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.21.0 - Run: Thu Oct 01 2026 04:08:15 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 | 5.1.1 | ✓ | 57864.8 | 16.76 | 10.32 |
| restana | 6.1.0 | ✓ | 53761.6 | 18.09 | 9.59 |
| fastify | 5.12.5 | ✓ | 50372.8 | 19.33 | 9.03 |
| node-http | v24.21.0 | ✗ | 50085.6 | 19.43 | 8.93 |
| micro | 10.0.1 | ✗ | 48633.6 | 20.04 | 8.67 |
| polka | 0.5.2 | ✓ | 48078.4 | 20.34 | 8.57 |
| adonisjs | 9.3.1 | ✓ | 47935.2 | 20.35 | 8.55 |
| connect | 3.7.0 | ✗ | 47097.6 | 20.72 | 8.40 |
| hono | 4.13.9 | ✓ | 45101.6 | 21.67 | 7.40 |
| connect-router | 2.2.0 | ✓ | 44486.4 | 22.00 | 7.93 |
| srvx | 0.12.8 | ✗ | 43733.6 | 22.35 | 7.09 |
| h3 | 2.0.1-rc.29 | ✓ | 39767.2 | 24.67 | 6.98 |
| elysia | 1.4.30 | ✓ | 39285.6 | 24.93 | 6.44 |
| koa | 3.2.1 | ✗ | 38916.8 | 25.20 | 6.94 |
| whatwg-node-server | 0.11.0 | ✗ | 36351.0 | 26.99 | 6.48 |
| koa-router | 15.7.0 | ✓ | 35452.6 | 27.70 | 6.32 |
| restify | 12.0.0 | ✓ | 32423.8 | 30.34 | 5.84 |
| hapi | 21.4.10 | ✓ | 31977.8 | 30.79 | 5.70 |
| express | 5.2.1 | ✓ | 27474.4 | 35.89 | 4.90 |
| microrouter | 3.1.3 | ✓ | 26219.6 | 37.63 | 4.68 |
| express-with-middlewares | 5.2.1 | ✓ | 23313.2 | 42.38 | 8.67 |
| fastify-big-json | 5.12.5 | ✓ | 14031.2 | 70.71 | 161.43 |
| trpc-router | 11.19.0 | ✓ | 10518.2 | 94.48 | 2.40 |