- 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.19.0 - Run: Sun Aug 23 2026 22:20:27 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.0 | ✓ | 62048.8 | 15.59 | 11.07 |
| node-http | v24.19.0 | ✗ | 58367.2 | 16.65 | 10.41 |
| polka | 0.5.2 | ✓ | 57753.6 | 16.81 | 10.30 |
| connect | 3.7.0 | ✗ | 57664.8 | 16.84 | 10.28 |
| srvx | 0.12.5 | ✗ | 56134.4 | 17.32 | 9.10 |
| fastify | 5.12.0 | ✓ | 55604.8 | 17.48 | 9.97 |
| h3 | 2.0.1-rc.26 | ✓ | 54140.0 | 17.99 | 9.50 |
| restana | v6.0.1 | ✓ | 53997.6 | 18.01 | 13.59 |
| hono | 4.13.2 | ✓ | 53509.6 | 18.18 | 8.78 |
| micro | 10.0.1 | ✗ | 53006.4 | 18.37 | 9.45 |
| connect-router | 2.2.0 | ✓ | 52597.6 | 18.51 | 9.38 |
| adonisjs | 9.2.0 | ✓ | 49871.2 | 19.58 | 8.89 |
| whatwg-node-server | 0.11.0 | ✗ | 49500.8 | 19.69 | 8.83 |
| koa | 3.2.1 | ✗ | 44354.4 | 22.04 | 7.91 |
| koa-router | 15.7.0 | ✓ | 41352.0 | 23.69 | 7.37 |
| hapi | 21.4.10 | ✓ | 39512.0 | 24.80 | 7.05 |
| express | 5.2.1 | ✓ | 35745.4 | 27.47 | 6.38 |
| microrouter | 3.1.3 | ✓ | 33166.2 | 29.64 | 5.91 |
| express-with-middlewares | 5.2.1 | ✓ | 29367.2 | 33.54 | 10.92 |
| fastify-big-json | 5.12.0 | ✓ | 14468.4 | 68.56 | 166.47 |
| trpc-router | 11.18.0 | ✓ | 11583.4 | 85.76 | 2.64 |
| elysia | 1.4.29 | ✓ | N/A | N/A | N/A |
| restify | 11.1.0 | ✓ | N/A | N/A | N/A |