- 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.20.0 - Run: Tue Sep 01 2026 09:04:10 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 | |
|---|---|---|---|---|---|
| restana | v6.0.1 | ✓ | 51672.8 | 18.84 | 9.22 |
| 0http | 5.1.0 | ✓ | 49909.6 | 19.53 | 8.90 |
| fastify | 5.12.1 | ✓ | 45068.8 | 21.71 | 8.08 |
| srvx | 0.12.7 | ✗ | 43364.0 | 22.60 | 7.03 |
| node-http | v24.20.0 | ✗ | 43202.4 | 22.68 | 7.70 |
| polka | 0.5.2 | ✓ | 42200.8 | 23.17 | 7.53 |
| micro | 10.0.1 | ✗ | 42111.2 | 23.22 | 7.51 |
| adonisjs | 9.3.0 | ✓ | 42008.8 | 23.31 | 7.49 |
| connect | 3.7.0 | ✗ | 40660.0 | 24.11 | 7.25 |
| hono | 4.13.4 | ✓ | 39571.2 | 24.76 | 6.49 |
| elysia | 1.4.29 | ✓ | 39484.0 | 24.81 | 6.48 |
| h3 | 2.0.1-rc.26 | ✓ | 39319.2 | 24.91 | 6.90 |
| connect-router | 2.2.0 | ✓ | 38030.4 | 25.83 | 6.78 |
| whatwg-node-server | 0.11.0 | ✗ | 36149.8 | 27.14 | 6.45 |
| koa | 3.2.1 | ✗ | 34867.0 | 28.18 | 6.22 |
| koa-router | 15.7.0 | ✓ | 33182.4 | 29.63 | 5.92 |
| hapi | 21.4.10 | ✓ | 32221.6 | 30.54 | 5.75 |
| express | 5.2.1 | ✓ | 24873.6 | 39.69 | 4.44 |
| microrouter | 3.1.3 | ✓ | 23934.8 | 41.26 | 4.27 |
| express-with-middlewares | 5.2.1 | ✓ | 21605.6 | 45.76 | 8.04 |
| fastify-big-json | 5.12.1 | ✓ | 14037.0 | 70.67 | 161.50 |
| trpc-router | 11.18.0 | ✓ | 10630.0 | 93.50 | 2.42 |
| restify | 11.1.0 | ✓ | N/A | N/A | N/A |