cinatra
Flagship · C++ · engine: Asio / async_simple · tuned configuration · completeness 4/4
cinatra C++20 coroutine HTTP server with one event loop per available CPU and native SO_REUSEPORT acceptors. Buffered JSON through iguana, gzip compression, and native HTTP/1.1 TLS and WebSocket listeners.
Achievements
🥇 3 Gold · 🥈 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 |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · HTTP/1.1 | 1 of 113 |
| 🥇 Gold | Within its language | C++ · HTTP/1.1 | 1 of 5 |
| 🥇 Gold | Test profile | Workload · JSON Comp | 1 of 108 |
| 🥈 Silver | Test profile | Connection · Baseline | 2 of 113 |
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.
Every result
Alpha Round, 21 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 | 3,455,004 | 1.19ms | 1.69ms | 6629.7% | 117MiB |
| Connection | Pipelined | 4,096 | 28,195,693 | 2.32ms | 5.33ms | 6591.0% | 124MiB |
| Connection | Short-lived | 4,096 | 2,512,110 | 1.60ms | 6.56ms | 6259.5% | 152MiB |
| Concurrency | Async Delay | 32,000 | 2,269,622 | 14.10ms | 15.60ms | 6388.1% | 549MiB |
| Concurrency | CON-1M | 1,000,000 | 249,999 | 68.0us | 122.0us | 737.4% | 14.4GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,968 | 76.0us | 138.0us | 1880.6% | 27.7GiB |
| Efficiency | Latency-10K | 1,024 | 9,978 | 75.0us | 100.0us | 23.9% | 45MiB |
| Efficiency | Latency-1M | 1,024 | 997,533 | 97.8us | 168.0us | 2347.8% | 49MiB |
| Workload | JSON Comp | 4,096 | 921,833 | 4.44ms | 13.20ms | 6340.6% | 231MiB |
| Workload | JSON Comp | 16,384 | 887,671 | 18.46ms | 28.00ms | 6323.7% | 571MiB |
| Workload | JSON TLS | 4,096 | 1,519,177 | 2.70ms | 70.08ms | 6500.0% | 281MiB |
| Workload | 8Gbit | 512 | 49,344 | 88.4us | 114.0us | 241.1% | 65MiB |
| Workload | Static TLS | 1,024 | 611,992 | 1.70ms | 55.79ms | 6674.9% | 357MiB |
| WebSocket | Echo | 512 | 3,749,637 | 135us | 279us | 6381.3% | 41MiB |
| WebSocket | Echo | 4,096 | 3,800,885 | 1.08ms | 1.57ms | 6274.6% | 136MiB |
| WebSocket | Echo | 16,384 | 3,482,080 | 4.71ms | 6.29ms | 6474.4% | 437MiB |
| WebSocket | Echo Pipelined | 512 | 49,551,289 | 164us | 311us | 6541.1% | 40MiB |
| WebSocket | Echo Pipelined | 4,096 | 49,320,387 | 1.33ms | 1.87ms | 6351.8% | 137MiB |
| WebSocket | Echo Pipelined | 16,384 | 45,636,502 | 5.74ms | 6.62ms | 6599.4% | 445MiB |
| WebSocket | Echo Short-lived | 512 | 2,152,935 | 197us | 642us | 5761.3% | 85MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,415,074 | 1.40ms | 3.13ms | 6023.9% | 206MiB |
Compared with
The C++ web frameworks around cinatra 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 cinatra | |
|---|---|---|---|
| libuvcpp | 3513 | -46% | head to head |
| cutelyst | 3190 | -51% | head to head |
Compare cinatra with any C++ entry · Compare cinatra with any entry, in any language · Every C++ entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry