HttpArena
Frameworks

cnetmod

Engine · C++

Cross-platform pure C++23 Modules networking engine using native stackless coroutines, io_uring with epoll fallback, per-loop HTTP/1.1 and HTTP/2, BoringSSL QUIC/HTTP/3, routed WebSocket upgrades, and native gRPC. One image serves HTTP/1.1, WebSocket and gRPC h2c on :8080, TLS HTTP/1.1 on :8081, h2c on :8082, HTTP/2 on :8443/tcp and HTTP/3 on :8443/udp.

Achievements

🥇 12 Gold · 🥈 5 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/21 of 16
🥇 GoldFamily compositeComposite · HTTP/31 of 8
🥇 GoldFamily compositeComposite · gRPC1 of 4
🥇 GoldWithin its languageC++ · HTTP/1.11 of 3
🥇 GoldWithin its languageC++ · HTTP/21 of 3
🥇 GoldWithin its languageC++ · HTTP/31 of 3
🥇 GoldWithin its languageC++ · WebSocket1 of 3
🥇 GoldTest profileHTTP/2 · Baseline1 of 15
🥇 GoldTest profileHTTP/2 · Baseline (h2c)1 of 13
🥇 GoldTest profileHTTP/3 · Static1 of 8
🥇 GoldTest profilegRPC · Unary1 of 4
🥇 GoldTest profilegRPC · Unary TLS1 of 3
🥈 SilverFamily compositeComposite · Gateway2 of 3
🥈 SilverFamily compositeComposite · WebSocket2 of 20
🥈 SilverTest profileGateway · Gateway (H2)2 of 3
🥈 SilverTest profileHTTP/2 · Static2 of 15
🥈 SilverTest profileHTTP/3 · Baseline2 of 8

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.17 of 456224
HTTP/21 of 162886
HTTP/31 of 81789
Gateway2 of 32891
gRPC1 of 42000
WebSocket2 of 202786

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,0963,941,3281.04ms1.41ms6229.7%497MiB
ConnectionPipelined4,09640,190,5121.63ms2.18ms6680.9%510MiB
ConnectionShort-lived4,0962,666,5401.42ms2.84ms6263.9%537MiB
ConcurrencyAsync Delay32,0002,282,70613.91ms15.30ms6420.0%1.4GiB
EfficiencyLatency-10K1,0249,97986.6us108.0us26.0%367MiB
EfficiencyLatency-1M1,024997,87791.1us158.0us2235.3%374MiB
EfficiencyLatency-500K/81,024476,129437208.4us2427904.0us816.6%128MiB
WorkloadJSON Comp4,096637,8176.41ms15.90ms6559.1%1.1GiB
WorkloadJSON Comp16,384620,26526.32ms46.60ms6367.5%2.0GiB
WorkloadJSON TLS4,0961,589,5572.50ms43.73ms6438.4%709MiB
Workload8Gbit51249,31692.0us117.0us224.3%314MiB
WorkloadStatic TLS1,0241,118,107778.26us33.01ms6189.8%416MiB
DatabaseAsync DB1,024342,5132.39ms19.60ms3740.6%543MiB
HTTP/2Baseline25615,159,542868us20.37ms2448.5%332MiB
HTTP/2Baseline1,02415,008,9723.20ms94.55ms2620.4%418MiB
HTTP/2Static2561,512,8084.26ms819.43ms5721.4%610MiB
HTTP/2Static1,0241,450,45917.60ms4.81s6139.4%840MiB
HTTP/2Baseline (h2c)25615,423,924834us3.51ms2392.1%308MiB
HTTP/2Baseline (h2c)1,02415,399,0313.13ms13.00ms2461.9%391MiB
HTTP/2Baseline (h2c)4,09614,041,80313.84ms51.20ms2353.6%816MiB
HTTP/2JSON (h2c)1,0243,771,8338.29ms38.77ms6464.7%670MiB
HTTP/2JSON (h2c)4,0963,719,04234.18ms106.89ms6467.2%1.4GiB
HTTP/3Baseline647,169,066556us978us2708.2%476MiB
HTTP/3Static64874,8765.05ms12.75ms4311.9%549MiB
gRPCUnary2567,427,6082.02ms17.14ms1165.9%316MiB
gRPCUnary1,0247,326,5417.47ms35.91ms1154.4%438MiB
gRPCUnary TLS2567,352,6832.03ms14.60ms1193.2%343MiB
gRPCUnary TLS1,0246,984,7527.44ms105.70ms1247.3%485MiB
GatewayGateway (H2)512376,28342.74ms150.45ms6051.2%2.7GiB
GatewayGateway (H2)1,024377,37683.20ms309.44ms6135.3%3.5GiB
GatewayGateway (H3)6481,48125.00ms85.00ms2997.5%986MiB
GatewayGateway (H3)25660,476131.07ms766.46ms2314.3%1.9GiB
GatewayProduction Stack256262,55516.58ms103.04ms4378.4%1.4GiB
GatewayProduction Stack1,024207,00973.33ms2.40s3876.3%2.2GiB
WebSocketEcho5123,880,055131us432us6494.8%380MiB
WebSocketEcho4,0964,065,2791.01ms3.35ms6260.9%515MiB
WebSocketEcho16,3843,770,2814.31ms12.20ms6468.0%1017MiB
WebSocketEcho Pipelined51261,158,306133us299us6379.4%376MiB
WebSocketEcho Pipelined4,09662,883,1931.04ms1.47ms6237.9%524MiB
WebSocketEcho Pipelined16,38457,528,8354.51ms5.42ms6104.6%1007MiB
WebSocketEcho Short-lived5122,122,224143us518us5646.2%389MiB
WebSocketEcho Short-lived4,0962,507,0931.10ms2.80ms6053.4%610MiB

Compared with

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

EntryCompositevs cnetmod
aegon7228+16%head to head
hical5793-7%head to head
libuvcpp4892-21%head to head

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

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