hapi
Flagship · JS · engine: node:http · standard configuration · completeness 4/4
hapi 21 on the Node http server, default configuration, one cluster worker per core. Routing, query and payload parsing, JSON serialization and compression are all hapi built-ins, with brotli (quality 3) registered through hapi's encoder API - no plugins.
- Official repository
- Official website
- Benchmark implementation
- All JS entries, compared
- Open the leaderboard
Composite rank
Each profile of a family is worth 1,000 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 57 of 86 | 1790 |
Every result
Alpha Round, 10 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 508,977 | 8.05ms | 10.10ms | 6413.6% | 6.9GiB |
| Connection | Pipelined | 4,096 | 1,476,761 | 44.29ms | 49.60ms | 6606.5% | 7.1GiB |
| Connection | Short-lived | 4,096 | 276,020 | 3.31ms | 19.70ms | 3968.6% | 6.7GiB |
| Concurrency | Async Delay | 32,000 | 731,381 | 21.85ms | 33.70ms | 5814.8% | 6.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,953 | 187.4us | 300.0us | 167.7% | 2.2GiB |
| Efficiency | Latency-1M | 1,024 | 670,760 | 3207354.4us | 7755776.0us | 6511.6% | 5.7GiB |
| Workload | JSON Comp | 4,096 | 88,345 | 46.34ms | 109.60ms | 6435.6% | 9.3GiB |
| Workload | JSON Comp | 16,384 | 92,261 | 71.31ms | 580.40ms | 6279.2% | 9.7GiB |
| Workload | JSON TLS | 4,096 | 420,585 | 9.49ms | 53.13ms | 6444.5% | 6.8GiB |
| Workload | 8Gbit | 512 | 49,360 | 274.4us | 666.0us | 1303.7% | 4.6GiB |
Compared with
The JS web frameworks around hapi on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs hapi | |
|---|---|---|---|
| fulmine.js - uwsLite | 8659 | +384% | head to head |
| fastify | 2150 | +20% | head to head |
| hapi-tuned | 1941 | +8% | head to head |
| koa | 1790 | +0% | head to head |
| express | 1660 | -7% | head to head |
Compare hapi with any JS entry · Compare hapi with any entry, in any language · Every JS entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry