HttpArena

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.

MedalAwardFieldRank
🥇 GoldFamily compositeComposite · HTTP/1.11 of 113
🥇 GoldWithin its languageC++ · HTTP/1.11 of 5
🥇 GoldTest profileWorkload · JSON Comp1 of 108
🥈 SilverTest profileConnection · Baseline2 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.

FamilyRankComposite
HTTP/1.11 of 1136472
WebSocket7 of 412527

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,455,0041.19ms1.69ms6629.7%117MiB
ConnectionPipelined4,09628,195,6932.32ms5.33ms6591.0%124MiB
ConnectionShort-lived4,0962,512,1101.60ms6.56ms6259.5%152MiB
ConcurrencyAsync Delay32,0002,269,62214.10ms15.60ms6388.1%549MiB
ConcurrencyCON-1M1,000,000249,99968.0us122.0us737.4%14.4GiB
ConcurrencyCON-1M-TLS1,000,000249,96876.0us138.0us1880.6%27.7GiB
EfficiencyLatency-10K1,0249,97875.0us100.0us23.9%45MiB
EfficiencyLatency-1M1,024997,53397.8us168.0us2347.8%49MiB
WorkloadJSON Comp4,096921,8334.44ms13.20ms6340.6%231MiB
WorkloadJSON Comp16,384887,67118.46ms28.00ms6323.7%571MiB
WorkloadJSON TLS4,0961,519,1772.70ms70.08ms6500.0%281MiB
Workload8Gbit51249,34488.4us114.0us241.1%65MiB
WorkloadStatic TLS1,024611,9921.70ms55.79ms6674.9%357MiB
WebSocketEcho5123,749,637135us279us6381.3%41MiB
WebSocketEcho4,0963,800,8851.08ms1.57ms6274.6%136MiB
WebSocketEcho16,3843,482,0804.71ms6.29ms6474.4%437MiB
WebSocketEcho Pipelined51249,551,289164us311us6541.1%40MiB
WebSocketEcho Pipelined4,09649,320,3871.33ms1.87ms6351.8%137MiB
WebSocketEcho Pipelined16,38445,636,5025.74ms6.62ms6599.4%445MiB
WebSocketEcho Short-lived5122,152,935197us642us5761.3%85MiB
WebSocketEcho Short-lived4,0962,415,0741.40ms3.13ms6023.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.

EntryCompositevs cinatra
libuvcpp3513-46%head to head
cutelyst3190-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