hapi-tuned
Flagship · JS · engine: node:http · tuned configuration · completeness 4/4
The hapi entry with three things changed. Each worker binds its own listener with reusePort, created in the entry and handed to hapi, instead of taking connections from the cluster primary. Brotli runs as one synchronous call at quality 1 inside the encoder hapi's compression calls, instead of a zlib stream at quality 3. Cookie parsing, range support and connection tracking for graceful stop are switched off. Routes, query and payload parsing and JSON serialization are the hapi entry's.
- 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 | 70 of 112 | 1941 |
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 | 501,354 | 8.18ms | 12.40ms | 6383.6% | 7.0GiB |
| Connection | Pipelined | 4,096 | 1,506,788 | 43.38ms | 58.00ms | 6517.2% | 7.2GiB |
| Connection | Short-lived | 4,096 | 459,667 | 8.83ms | 141.70ms | 6300.4% | 7.5GiB |
| Concurrency | Async Delay | 32,000 | 673,156 | 47.53ms | 65.00ms | 6436.3% | 7.1GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 179.2us | 298.0us | 149.3% | 2.8GiB |
| Efficiency | Latency-1M | 1,024 | 681,969 | 2867056.7us | 8966144.0us | 6539.8% | 5.8GiB |
| Workload | JSON Comp | 4,096 | 213,727 | 18.60ms | 403.40ms | 6403.7% | 9.1GiB |
| Workload | JSON Comp | 16,384 | 215,340 | 64.23ms | 1.64s | 6232.4% | 10.8GiB |
| Workload | JSON TLS | 4,096 | 427,131 | 9.48ms | 56.89ms | 6439.1% | 6.7GiB |
| Workload | 8Gbit | 512 | 49,339 | 267.6us | 613.0us | 1232.7% | 4.4GiB |
Compared with
The JS web frameworks around hapi-tuned 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-tuned | |
|---|---|---|---|
| fulmine.js - uwsLite | 8659 | +346% | head to head |
| node-h3 | 2471 | +27% | head to head |
| fastify | 2150 | +11% | head to head |
| hapi | 1790 | -8% | head to head |
| koa | 1790 | -8% | head to head |
Compare hapi-tuned with any JS entry · Compare hapi-tuned with any entry, in any language · Every JS entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry