JS web framework comparison: any two, head to head
node-h3 is ahead of fastify on 5 of the 10 tests they both run, and behind on 4. On the HTTP/1.1 composite node-h3 scores 1826 and fastify 1626.
Pick any two of the 14 JS entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.
| Profile | Conns | node-h3 | fastify | Delta | node-h3 p99 | fastify p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 756,808 | 737,611 | +3% | 7.31ms | 6.32ms |
| Pipelined | 4,096 | 1,637,607 | 1,671,518 | -2% | 57.90ms | 49.80ms |
| Short-lived | 4,096 | 668,595 | 291,264 | +130% | 96.90ms | 18.80ms |
| Async Delay | 32,000 | 922,461 | 862,256 | +7% | 47.80ms | 35.20ms |
| JSON Comp | 4,096 | 242,721 | 49,030 | +395% | 376.30ms | 200.40ms |
| JSON Comp | 16,384 | 250,845 | 49,716 | +405% | 1.47s | 1.14s |
| JSON TLS | 4,096 | 507,727 | 571,431 | -11% | 48.33ms | 31.69ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 46.4 | 46.4 | 0% | 238us | 225us |
| Latency-1M | 1,024 | 11.4 | 13.4 | -15% | 7.25s | 4.27s |
| 8Gbit | 512 | 35.4 | 41.5 | -15% | 702us | 461us |
Common comparisons
node-h3 vs fastify · node-h3 vs hapi-tuned · node-h3 vs koa · fastify vs hapi-tuned · fastify vs koa · hapi-tuned vs koa
Questions
Is node-h3 faster than fastify?
node-h3 is ahead of fastify on 5 of the 10 tests they both run, and behind on 4. On the HTTP/1.1 composite node-h3 scores 1826 and fastify 1626. Both run on the same machine, in the same round, against the same profiles.
Is node-h3 faster than hapi-tuned?
node-h3 is ahead of hapi-tuned on 9 of the 10 tests they both run, and behind on 1. On the HTTP/1.1 composite node-h3 scores 1826 and hapi-tuned 1451. Both run on the same machine, in the same round, against the same profiles.
Is node-h3 faster than koa?
node-h3 is ahead of koa on 9 of the 10 tests they both run, and behind on 1. On the HTTP/1.1 composite node-h3 scores 1826 and koa 1382. Both run on the same machine, in the same round, against the same profiles.
Is fastify faster than hapi-tuned?
fastify is ahead of hapi-tuned on 7 of the 10 tests they both run, and behind on 3. On the HTTP/1.1 composite fastify scores 1626 and hapi-tuned 1451. Both run on the same machine, in the same round, against the same profiles.
Which JS framework is fastest overall?
Among the JS web frameworks, fulmine.js - uwsLite holds the highest HTTP/1.1 composite, at 6059; among the JS HTTP engines, node holds the highest HTTP/1.1 composite, at 1694; among the experimental JS frameworks, velocity holds the highest HTTP/1.1 composite, at 2129. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every JS entry
- fulmine.js - uwsLite
- fulmine.js
- morojs
- spliffy
- hyper-express
- ultimate-express
- node-h3
- fastify
- hapi-tuned
- koa
- hapi
- express
- node
- velocity
Results updated · JS composite ranking · Compare across languages · Other languages · Open the leaderboard