HttpArena
Frameworks

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.

MedalAwardFieldRank
🥇 GoldWithin its languageC++ · HTTP/1.11 of 5
🥈 SilverTest profileConnection · Baseline2 of 109
🥈 SilverTest profileConnection · Short-lived2 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.

FamilyRankComposite
HTTP/1.19 of 1096349
WebSocket4 of 392712

Every result

Alpha Round, 19 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,442,2301.19ms1.70ms6349.1%114MiB
ConnectionPipelined4,09628,675,1372.29ms4.12ms6313.6%122MiB
ConnectionShort-lived4,0962,574,3061.56ms22.40ms6314.9%92MiB
ConcurrencyAsync Delay32,0002,193,88514.48ms16.70ms6425.9%541MiB
EfficiencyLatency-10K1,0249,98270.4us102.0us23.7%42MiB
EfficiencyLatency-1M1,024997,83196.4us172.0us2337.1%47MiB
EfficiencyLatency-500K/81,024475,203426546.7us3185664.0us816.0%30MiB
WorkloadJSON Comp4,096557,7867.25ms181.70ms6547.3%117MiB
WorkloadJSON Comp16,384543,80028.02ms697.90ms6043.6%243MiB
WorkloadJSON TLS4,096807,9597.21ms143.86ms6410.4%659MiB
Workload8Gbit51248,7211021.4us37360.0us482.2%125MiB
WebSocketEcho5123,791,673134us304us6315.1%38MiB
WebSocketEcho4,0963,776,8221.08ms1.59ms6341.3%131MiB
WebSocketEcho16,3843,422,5114.69ms6.35ms6129.6%430MiB
WebSocketEcho Pipelined51249,282,517165us366us6678.8%40MiB
WebSocketEcho Pipelined4,09648,125,9421.36ms1.84ms6659.4%127MiB
WebSocketEcho Pipelined16,38443,483,4015.86ms10.60ms6547.1%427MiB
WebSocketEcho Short-lived5122,008,030157us469us5443.2%62MiB
WebSocketEcho Short-lived4,0962,430,997475us1.05ms6288.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.

EntryCompositevs cinatra
libuvcpp4789-25%head to head
drogon4145-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