koa
Flagship · JS · engine: node:http · standard configuration · completeness 4/4
Koa 3 on the Node http server, default configuration, one cluster worker per core. Routing through @koa/router, JSON through the koa response body, gzip through koa-compress.
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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 | 55 of 88 | 1382 |
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 | 599,362 | 5.48ms | 7.56ms | 6454.1% | 2.8GiB |
| Connection | Pipelined | 4,096 | 1,242,756 | 37.28ms | 60.50ms | 6646.3% | 4.2GiB |
| Connection | Short-lived | 4,096 | 289,275 | 2.42ms | 18.50ms | 3459.4% | 4.5GiB |
| Concurrency | Async Delay | 32,000 | 611,659 | 40.48ms | 49.40ms | 5397.8% | 6.5GiB |
| Efficiency | Latency-10K | 1,024 | 9,952 | 172.6us | 292.0us | 152.1% | 2.2GiB |
| Efficiency | Latency-1M | 1,024 | 648,107 | 3410426.2us | 8001536.0us | 6216.4% | 2.7GiB |
| Workload | JSON Comp | 4,096 | 49,742 | 65.33ms | 254.40ms | 6454.5% | 9.2GiB |
| Workload | JSON Comp | 16,384 | 49,866 | 102.94ms | 1.27s | 6244.9% | 9.7GiB |
| Workload | JSON TLS | 4,096 | 388,391 | 9.48ms | 52.63ms | 6409.4% | 6.5GiB |
| Workload | 8Gbit | 512 | 49,364 | 220.5us | 420.0us | 922.2% | 2.8GiB |
Compared with
The JS web frameworks around koa 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 koa | |
|---|---|---|---|
| fulmine.js - uwsLite | 6059 | +339% | head to head |
| fastify | 1626 | +18% | head to head |
| hapi-tuned | 1451 | +5% | head to head |
| hapi | 1353 | -2% | head to head |
| express | 1266 | -8% | head to head |
Compare koa with any JS entry · Compare koa with any entry, in any language · Every JS entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry