sinatra
Flagship · Ruby · engine: puma · standard configuration · completeness 4/4
Sinatra DSL web framework on Puma, multi-threaded with one worker per CPU core.
Achievements
🥉 1 Bronze. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥉 Bronze | Within its language | Ruby · HTTP/1.1 | 3 of 5 |
Composite rank
Each profile of a family is worth 100 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 | 61 of 71 | 1148 |
Every result
Alpha Round, 13 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 | 56,910 | 60.48ms | 218.70ms | 3861.7% | 4.7GiB |
| Connection | Pipelined | 4,096 | 478,396 | 119.57ms | 272.00ms | 6463.3% | 2.1GiB |
| Connection | Short-lived | 4,096 | 40,755 | 90.00ms | 186.30ms | 3167.7% | 4.3GiB |
| Concurrency | Async Delay | 32,000 | 17,803 | 612.77ms | 4.12s | 601.6% | 4.6GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 253.4us | 825.0us | 232.2% | 4.3GiB |
| Efficiency | Latency-1M | 1,024 | 285,166 | 7045096.4us | 15052800.0us | 6178.4% | 7.2GiB |
| Efficiency | Latency-500K/8 | 1,024 | 47,223 | 9030112.2us | 17833984.0us | 774.5% | 1.1GiB |
| Workload | JSON Comp | 4,096 | 127,188 | 29.21ms | 90.60ms | 6314.3% | 4.6GiB |
| Workload | JSON Comp | 16,384 | 125,278 | 74.78ms | 265.80ms | 6469.2% | 4.8GiB |
| Workload | JSON TLS | 4,096 | 190,166 | 21.48ms | 193.08ms | 6411.9% | 6.9GiB |
| Workload | 8Gbit | 512 | 49,383 | 394.0us | 1419.0us | 1588.8% | 6.8GiB |
| Workload | Static TLS | 1,024 | 21,789 | 47.18ms | 253.86ms | 6510.7% | 6.9GiB |
| Database | Async DB | 1,024 | 109,136 | 8.70ms | 21.40ms | 6222.2% | 3.2GiB |
Compared with
The Ruby entries around sinatra on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs sinatra | |
|---|---|---|---|
| h2o-mruby | 3350 | +192% | head to head |
| roda | 1305 | +14% | head to head |
| rage | 1257 | +10% | head to head |
| rack-iodine | 1042 | -9% | head to head |
| rack-falcon | 783 | -32% | head to head |
Compare sinatra with any Ruby entry · Compare sinatra with any entry, in any language · Every Ruby entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry