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 Silver. 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 |
|---|---|---|---|
| 🥈 Silver | Within its language | Ruby · HTTP/1.1 | 2 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 | 73 of 84 | 1109 |
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 | 302,602 | 11.98ms | 40.90ms | 5987.0% | 5.3GiB |
| Connection | Pipelined | 4,096 | 465,048 | 116.10ms | 561.90ms | 6447.2% | 3.6GiB |
| Connection | Short-lived | 4,096 | 290,922 | 7.91ms | 37.90ms | 6402.4% | 5.2GiB |
| Concurrency | Async Delay | 32,000 | 48,251 | 215.69ms | 1.04s | 1759.6% | 4.4GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 257.7us | 803.0us | 235.4% | 3.6GiB |
| Efficiency | Latency-1M | 1,024 | 267,457 | 7280601.9us | 14798848.0us | 5866.7% | 5.1GiB |
| Efficiency | Latency-500K/8 | 1,024 | 45,373 | 9079764.9us | 17965056.0us | 735.3% | 766MiB |
| Workload | JSON Comp | 4,096 | 120,157 | 29.93ms | 69.70ms | 6331.6% | 3.0GiB |
| Workload | JSON Comp | 16,384 | 119,408 | 78.68ms | 315.90ms | 6157.4% | 3.3GiB |
| Workload | JSON TLS | 4,096 | 176,330 | 22.42ms | 85.85ms | 6166.7% | 5.4GiB |
| Workload | 8Gbit | 512 | 49,383 | 544.1us | 8086.0us | 1602.9% | 4.3GiB |
| Workload | Static TLS | 1,024 | 21,487 | 47.70ms | 218.27ms | 6467.9% | 3.5GiB |
| Database | Async DB | 1,024 | 114,472 | 8.27ms | 28.30ms | 6344.2% | 4.9GiB |
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 | 3213 | +190% | head to head |
| rage | 1415 | +28% | head to head |
| roda | 1022 | -8% | head to head |
| rack-iodine | 1010 | -9% | 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