- 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: Mon Aug 17 2026 12:52: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 | ✓ | 97019.2 | 9.77 | 17.30 |
| srvx | 0.12.5 | ✗ | 92691.2 | 10.34 | 15.03 |
| node-http | v24.19.0 | ✗ | 92076.8 | 10.40 | 16.42 |
| polka | 0.5.2 | ✓ | 92052.8 | 10.40 | 16.42 |
| connect | 3.7.0 | ✗ | 89174.4 | 10.76 | 15.90 |
| fastify | 5.11.3 | ✓ | 88171.2 | 10.84 | 15.81 |
| restana | v6.0.1 | ✓ | 84916.8 | 11.27 | 21.38 |
| micro | 10.0.1 | ✗ | 83992.0 | 11.47 | 14.98 |
| h3 | 2.0.1-rc.26 | ✓ | 82683.2 | 11.56 | 14.51 |
| connect-router | 2.2.0 | ✓ | 82443.2 | 11.61 | 14.70 |
| hono | 4.13.1 | ✓ | 82371.2 | 11.62 | 13.51 |
| whatwg-node-server | 0.11.0 | ✗ | 80638.4 | 11.94 | 14.38 |
| adonisjs | 9.2.0 | ✓ | 79744.0 | 12.05 | 14.22 |
| koa-router | 15.7.0 | ✓ | 66603.2 | 14.52 | 11.88 |
| hapi | 21.4.10 | ✓ | 59754.4 | 16.26 | 10.66 |
| express | 5.2.1 | ✓ | 57936.0 | 16.73 | 10.33 |
| koa | 3.2.1 | ✗ | 57213.6 | 17.02 | 10.20 |
| microrouter | 3.1.3 | ✓ | 50352.0 | 19.37 | 8.98 |
| express-with-middlewares | 5.2.1 | ✓ | 46609.6 | 20.95 | 17.34 |
| fastify-big-json | 5.11.3 | ✓ | 17265.2 | 57.42 | 198.65 |
| trpc-router | 11.18.0 | ✓ | 15484.9 | 64.04 | 3.53 |
| restify | 11.1.0 | ✓ | N/A | N/A | N/A |