HttpArena
Frameworks

cweb

Experimental · C · standard configuration

Zero-copy asynchronous HTTP/1.1 & WebSocket framework in C using io_uring and splice.

Achievements

🥉 2 Bronze. 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
🥉 BronzeTest profileEfficiency · Latency-1M3 of 21
🥉 BronzeTest profileWebSocket · Echo Pipelined3 of 17

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.

FamilyRankComposite
HTTP/1.115 of 234381
WebSocket4 of 172891

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,810,2191.07ms1.75ms6272.0%383MiB
ConnectionPipelined4,09636,428,5501.80ms2.31ms6384.8%382MiB
ConnectionShort-lived4,0962,700,8261.40ms4.97ms5793.5%405MiB
EfficiencyLatency-10K1,0249,98173.5us104.0us26.4%330MiB
EfficiencyLatency-1M1,024997,982103.5us186.0us2660.3%332MiB
EfficiencyLatency-500K/81,024492,194128184.9us946432.0us830.5%66MiB
WorkloadJSON Comp4,096849,3874.78ms87.10ms6334.6%396MiB
WorkloadJSON Comp16,384859,45418.31ms416.80ms6339.7%501MiB
DatabaseAsync DB1,024314,4662.79ms20.90ms2962.3%386MiB
WebSocketEcho5123,958,773128us279us6393.7%323MiB
WebSocketEcho4,0964,093,2951.00ms1.79ms6164.0%375MiB
WebSocketEcho16,3843,964,4454.11ms6.23ms6079.4%570MiB
WebSocketEcho Pipelined51260,210,236135us301us6389.2%319MiB
WebSocketEcho Pipelined4,09662,959,1611.04ms1.75ms6245.8%374MiB
WebSocketEcho Pipelined16,38461,076,9564.28ms5.81ms6163.5%562MiB
WebSocketEcho Short-lived5122,102,789138us459us5404.0%338MiB
WebSocketEcho Short-lived4,0962,537,6571.04ms1.81ms5809.4%405MiB

Compared with

The C entries around cweb on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs cweb
httparena-io_uring7356+68%head to head
mongoose5844+33%head to head
libreactorng3778-14%head to head
nginx3671-16%head to head

Compare cweb with any C entry · Compare cweb with any entry, in any language · Every C entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry