cinatra
Flagship · C++ · engine: Asio / async_simple · tuned configuration · completeness 4/4
cinatra C++20 coroutine HTTP server, one event loop per available CPU and native SO_REUSEPORT acceptors. JSON through bundled iguana and cinatra's streaming response API with built-in gzip. Request-local PMR storage avoids copying immutable dataset strings. Native HTTP/1.1 TLS and WebSocket listeners.
Achievements
🥇 1 Gold · 🥈 2 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 | Within its language | C++ · HTTP/1.1 | 1 of 5 |
| 🥈 Silver | Test profile | Connection · Baseline | 2 of 109 |
| 🥈 Silver | Test profile | Connection · Short-lived | 2 of 109 |
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.
Every result
Alpha Round, 19 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,442,230 | 1.19ms | 1.70ms | 6349.1% | 114MiB |
| Connection | Pipelined | 4,096 | 28,675,137 | 2.29ms | 4.12ms | 6313.6% | 122MiB |
| Connection | Short-lived | 4,096 | 2,574,306 | 1.56ms | 22.40ms | 6314.9% | 92MiB |
| Concurrency | Async Delay | 32,000 | 2,193,885 | 14.48ms | 16.70ms | 6425.9% | 541MiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 70.4us | 102.0us | 23.7% | 42MiB |
| Efficiency | Latency-1M | 1,024 | 997,831 | 96.4us | 172.0us | 2337.1% | 47MiB |
| Efficiency | Latency-500K/8 | 1,024 | 475,203 | 426546.7us | 3185664.0us | 816.0% | 30MiB |
| Workload | JSON Comp | 4,096 | 557,786 | 7.25ms | 181.70ms | 6547.3% | 117MiB |
| Workload | JSON Comp | 16,384 | 543,800 | 28.02ms | 697.90ms | 6043.6% | 243MiB |
| Workload | JSON TLS | 4,096 | 807,959 | 7.21ms | 143.86ms | 6410.4% | 659MiB |
| Workload | 8Gbit | 512 | 48,721 | 1021.4us | 37360.0us | 482.2% | 125MiB |
| WebSocket | Echo | 512 | 3,791,673 | 134us | 304us | 6315.1% | 38MiB |
| WebSocket | Echo | 4,096 | 3,776,822 | 1.08ms | 1.59ms | 6341.3% | 131MiB |
| WebSocket | Echo | 16,384 | 3,422,511 | 4.69ms | 6.35ms | 6129.6% | 430MiB |
| WebSocket | Echo Pipelined | 512 | 49,282,517 | 165us | 366us | 6678.8% | 40MiB |
| WebSocket | Echo Pipelined | 4,096 | 48,125,942 | 1.36ms | 1.84ms | 6659.4% | 127MiB |
| WebSocket | Echo Pipelined | 16,384 | 43,483,401 | 5.86ms | 10.60ms | 6547.1% | 427MiB |
| WebSocket | Echo Short-lived | 512 | 2,008,030 | 157us | 469us | 5443.2% | 62MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,430,997 | 475us | 1.05ms | 6288.8% | 119MiB |
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 | 4789 | -25% | head to head |
| drogon | 4145 | -35% | 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