HttpArena
Frameworks

libuvcpp

Emerging · C++ · engine: libuv · standard configuration · completeness 4/4

libuvcpp on the libuv event loop, one loop per available core. Routing, path and query params, static files and WebSocket through uvcpp_web_app, JSON serialized per request through the framework's bundled yyjson backend (uvcpp_json_builder, written by yyjson's own serializer, no pre-rendered bytes), gzip through the built-in response compression, async Postgres through uvcpp_db_pool, and gRPC unary calls through the uvcpp_grpc module. One process serves HTTP/1.1 and prior-knowledge h2c on 8080, h2c on 8082, HTTP/2 over TLS on 8443, and HTTP/3 on 8443/udp, all from the same build; the gateway-64 and production-stack profiles put a stock nginx edge in front of it and gateway-h3 a stock Caddy one.

Achievements

🥇 2 Gold · 🥉 3 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
🥇 GoldWithin its languageC++ · HTTP/1.11 of 4
🥇 GoldTest profileGateway · Production Stack1 of 7
🥉 BronzeFamily compositeComposite · Gateway3 of 8
🥉 BronzeFamily compositeComposite · HTTP/33 of 16
🥉 BronzeTest profileHTTP/2 · Static3 of 29

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.114 of 854789
HTTP/26 of 312260
HTTP/33 of 161465
Gateway3 of 82229
gRPC5 of 101142
WebSocket11 of 302025

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,802,5932.27ms5.07ms6284.8%139MiB
ConnectionPipelined4,0967,848,4008.38ms10.60ms6474.9%150MiB
ConnectionShort-lived4,0961,480,5672.74ms43.20ms6296.5%86MiB
ConcurrencyAsync Delay32,0001,529,80519.93ms24.60ms6125.0%489MiB
EfficiencyLatency-10K1,0249,98183.3us120.0us36.7%79MiB
EfficiencyLatency-1M1,024997,805145.6us312.0us4179.8%82MiB
EfficiencyLatency-500K/81,024271,9014536264.9us9293824.0us778.7%32MiB
WorkloadJSON Comp4,096285,75914.01ms294.60ms6234.1%111MiB
WorkloadJSON Comp16,384291,22034.62ms724.90ms6503.1%152MiB
WorkloadJSON TLS4,096619,6716.52ms58.00ms6361.6%406MiB
Workload8Gbit51249,340112.4us147.0us309.1%209MiB
WorkloadStatic TLS1,024571,2151.79ms14.38ms6554.2%273MiB
DatabaseAsync DB1,02495,43510.21ms39.70ms2796.2%185MiB
HTTP/2Baseline2565,501,0935.02ms28.45ms6319.2%110MiB
HTTP/2Baseline1,0245,430,75017.83ms103.49ms6284.9%172MiB
HTTP/2Static256806,68410.69ms61.94ms6459.0%240MiB
HTTP/2Static1,024550,03957.34ms243.84ms6240.6%507MiB
HTTP/2Baseline (h2c)2565,889,6014.51ms41.60ms6197.9%81MiB
HTTP/2Baseline (h2c)1,0245,709,08917.54ms457.39ms6424.8%164MiB
HTTP/2Baseline (h2c)4,0965,489,43170.66ms779.10ms6391.8%766MiB
HTTP/2JSON (h2c)1,0241,187,76926.88ms506.39ms6357.1%332MiB
HTTP/2JSON (h2c)4,0961,130,987112.44ms888.05ms6187.0%1.3GiB
HTTP/3Baseline643,239,5251.18ms4.23ms3752.8%103MiB
HTTP/3Static64238,17517.31ms82.81ms4207.0%475MiB
gRPCUnary2563,837,6336.78ms44.98ms6228.5%173MiB
gRPCUnary1,0243,600,21827.30ms236.44ms6352.8%428MiB
gRPCUnary TLS2563,664,1477.22ms60.27ms6168.1%165MiB
gRPCUnary TLS1,0243,517,79327.85ms181.47ms6142.2%591MiB
GatewayGateway (H2)512240,38652.45ms4.83s5635.2%1.5GiB
GatewayGateway (H2)1,024233,849107.33ms4.88s5998.6%2.0GiB
GatewayGateway (H3)6484,75924.01ms84.19ms3578.1%415MiB
GatewayGateway (H3)25662,533127.00ms772.31ms2792.4%1.4GiB
GatewayProduction Stack256256,27917.06ms131.13ms4765.6%1.2GiB
GatewayProduction Stack1,024208,50073.82ms2.60s4284.8%2.0GiB
WebSocketEcho5122,892,280176us418us6512.2%79MiB
WebSocketEcho4,0963,007,0351.36ms2.30ms6314.7%131MiB
WebSocketEcho16,3842,673,3015.44ms7.04ms6159.0%329MiB
WebSocketEcho Pipelined51233,213,203246us592us6810.3%78MiB
WebSocketEcho Pipelined4,09632,736,1471.99ms2.71ms6337.8%135MiB
WebSocketEcho Pipelined16,38429,129,6037.85ms10.00ms6193.9%348MiB
WebSocketEcho Short-lived5121,633,110202us605us5850.3%85MiB
WebSocketEcho Short-lived4,0961,832,895378us818us6204.7%93MiB

Compared with

The C++ web frameworks around libuvcpp 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 libuvcpp
cinatra6349+33%head to head
drogon4145-13%head to head
cutelyst4098-14%head to head

Compare libuvcpp with any C++ entry · Compare libuvcpp with any entry, in any language · Every C++ entry, ranked

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