hanami
Flagship · Ruby · engine: Puma · standard configuration · completeness 4/4
Hanami 2.3 actions and router on Puma, one worker per core. Routing and params through the Hanami API, JSON generated per request, gzip through Rack::Deflater.
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 | 79 of 85 | 693 |
Every result
Alpha Round, 11 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 | 160,685 | 22.25ms | 70.70ms | 6065.0% | 5.5GiB |
| Connection | Pipelined | 4,096 | 640,085 | 36.06ms | 1.25s | 6394.5% | 4.6GiB |
| Connection | Short-lived | 4,096 | 154,736 | 11.37ms | 70.70ms | 6396.8% | 4.9GiB |
| Concurrency | Async Delay | 32,000 | 24,376 | 466.00ms | 2.29s | 888.1% | 4.1GiB |
| Efficiency | Latency-10K | 1,024 | 9,977 | 472.0us | 1159.0us | 421.6% | 3.7GiB |
| Efficiency | Latency-1M | 1,024 | 160,305 | 8288243.4us | 16732160.0us | 6121.1% | 5.5GiB |
| Efficiency | Latency-500K/8 | 1,024 | 23,556 | 9501648.4us | 18817024.0us | 744.0% | 850MiB |
| Workload | JSON Comp | 4,096 | 89,120 | 37.09ms | 87.00ms | 6487.5% | 3.4GiB |
| Workload | JSON Comp | 16,384 | 88,408 | 46.43ms | 108.50ms | 6202.4% | 3.4GiB |
| Workload | JSON TLS | 4,096 | 118,803 | 32.00ms | 105.27ms | 6283.9% | 5.2GiB |
| Workload | 8Gbit | 512 | 49,270 | 1303.6us | 16888.0us | 3065.7% | 4.9GiB |
Compared with
The Ruby web frameworks around hanami 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 hanami | |
|---|---|---|---|
| h2o-mruby | 3133 | +352% | head to head |
| roda | 1242 | +79% | head to head |
| sinatra | 1102 | +59% | head to head |
| rails | 631 | -9% | head to head |
Compare hanami with any Ruby entry · Compare hanami with any entry, in any language · Every Ruby entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry