- 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.13.0 - Run: Sat Jan 17 2026 07:09:28 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 | ✓ | 56276.8 | 17.26 | 10.04 |
| restana | v5.1.0 | ✓ | 52476.8 | 18.56 | 9.36 |
| h3-router | 1.15.5 | ✓ | 51782.4 | 18.81 | 9.24 |
| h3 | 1.15.5 | ✗ | 51381.6 | 18.93 | 9.16 |
| node-http | v24.13.0 | ✗ | 47865.6 | 20.38 | 8.54 |
| micro | 10.0.1 | ✗ | 46970.4 | 20.79 | 8.38 |
| connect | 3.7.0 | ✗ | 46747.2 | 20.87 | 8.34 |
| polka | 0.5.2 | ✓ | 46399.2 | 21.03 | 8.28 |
| fastify | 5.7.1 | ✓ | 46012.8 | 21.20 | 8.25 |
| connect-router | 2.2.0 | ✓ | 43462.4 | 22.49 | 7.75 |
| whatwg-node-server | 0.10.18 | ✗ | 40400.8 | 24.24 | 7.21 |
| koa | 3.1.1 | ✗ | 37299.8 | 26.32 | 6.65 |
| hono | 4.11.4 | ✓ | 37118.4 | 26.45 | 6.09 |
| koa-router | 15.2.0 | ✓ | 34576.4 | 28.41 | 6.17 |
| hapi | 21.4.4 | ✓ | 34002.8 | 28.90 | 6.06 |
| adonisjs | 7.8.0 | ✓ | 31434.8 | 31.31 | 5.61 |
| srvx | 0.10.0 | ✗ | 28321.6 | 35.02 | 5.51 |
| express | 5.2.1 | ✓ | 28288.4 | 34.82 | 5.04 |
| express-with-middlewares | 5.2.1 | ✓ | 23898.0 | 41.32 | 8.89 |
| microrouter | 3.1.3 | ✓ | 21020.0 | 47.07 | 3.75 |
| fastify-big-json | 5.7.1 | ✓ | 12483.0 | 79.53 | 143.63 |
| trpc-router | 11.8.1 | ✓ | 9134.0 | 108.87 | 2.01 |
| restify | 11.1.0 | ✓ | N/A | N/A | N/A |