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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 16 |
| 🥇 Gold | Family composite | Composite · HTTP/3 | 1 of 8 |
| 🥇 Gold | Family composite | Composite · gRPC | 1 of 4 |
| 🥇 Gold | Within its language | C++ · HTTP/1.1 | 1 of 3 |
| 🥇 Gold | Within its language | C++ · HTTP/2 | 1 of 3 |
| 🥇 Gold | Within its language | C++ · HTTP/3 | 1 of 3 |
| 🥇 Gold | Within its language | C++ · WebSocket | 1 of 3 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 15 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline (h2c) | 1 of 13 |
| 🥇 Gold | Test profile | HTTP/3 · Static | 1 of 8 |
| 🥇 Gold | Test profile | gRPC · Unary | 1 of 4 |
| 🥇 Gold | Test profile | gRPC · Unary TLS | 1 of 3 |
| 🥈 Silver | Family composite | Composite · Gateway | 2 of 3 |
| 🥈 Silver | Family composite | Composite · WebSocket | 2 of 20 |
| 🥈 Silver | Test profile | Gateway · Gateway (H2) | 2 of 3 |
| 🥈 Silver | Test profile | HTTP/2 · Static | 2 of 15 |
| 🥈 Silver | Test profile | HTTP/3 · Baseline | 2 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 7 of 45 | 6224 |
| HTTP/2 | 1 of 16 | 2886 |
| HTTP/3 | 1 of 8 | 1789 |
| Gateway | 2 of 3 | 2891 |
| gRPC | 1 of 4 | 2000 |
| WebSocket | 2 of 20 | 2786 |
Every result
Alpha Round, 42 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 3,941,328 | 1.04ms | 1.41ms | 6229.7% | 497MiB |
| Connection | Pipelined | 4,096 | 40,190,512 | 1.63ms | 2.18ms | 6680.9% | 510MiB |
| Connection | Short-lived | 4,096 | 2,666,540 | 1.42ms | 2.84ms | 6263.9% | 537MiB |
| Concurrency | Async Delay | 32,000 | 2,282,706 | 13.91ms | 15.30ms | 6420.0% | 1.4GiB |
| Efficiency | Latency-10K | 1,024 | 9,979 | 86.6us | 108.0us | 26.0% | 367MiB |
| Efficiency | Latency-1M | 1,024 | 997,877 | 91.1us | 158.0us | 2235.3% | 374MiB |
| Efficiency | Latency-500K/8 | 1,024 | 476,129 | 437208.4us | 2427904.0us | 816.6% | 128MiB |
| Workload | JSON Comp | 4,096 | 637,817 | 6.41ms | 15.90ms | 6559.1% | 1.1GiB |
| Workload | JSON Comp | 16,384 | 620,265 | 26.32ms | 46.60ms | 6367.5% | 2.0GiB |
| Workload | JSON TLS | 4,096 | 1,589,557 | 2.50ms | 43.73ms | 6438.4% | 709MiB |
| Workload | 8Gbit | 512 | 49,316 | 92.0us | 117.0us | 224.3% | 314MiB |
| Workload | Static TLS | 1,024 | 1,118,107 | 778.26us | 33.01ms | 6189.8% | 416MiB |
| Database | Async DB | 1,024 | 342,513 | 2.39ms | 19.60ms | 3740.6% | 543MiB |
| HTTP/2 | Baseline | 256 | 15,159,542 | 868us | 20.37ms | 2448.5% | 332MiB |
| HTTP/2 | Baseline | 1,024 | 15,008,972 | 3.20ms | 94.55ms | 2620.4% | 418MiB |
| HTTP/2 | Static | 256 | 1,512,808 | 4.26ms | 819.43ms | 5721.4% | 610MiB |
| HTTP/2 | Static | 1,024 | 1,450,459 | 17.60ms | 4.81s | 6139.4% | 840MiB |
| HTTP/2 | Baseline (h2c) | 256 | 15,423,924 | 834us | 3.51ms | 2392.1% | 308MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 15,399,031 | 3.13ms | 13.00ms | 2461.9% | 391MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 14,041,803 | 13.84ms | 51.20ms | 2353.6% | 816MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 3,771,833 | 8.29ms | 38.77ms | 6464.7% | 670MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 3,719,042 | 34.18ms | 106.89ms | 6467.2% | 1.4GiB |
| HTTP/3 | Baseline | 64 | 7,169,066 | 556us | 978us | 2708.2% | 476MiB |
| HTTP/3 | Static | 64 | 874,876 | 5.05ms | 12.75ms | 4311.9% | 549MiB |
| gRPC | Unary | 256 | 7,427,608 | 2.02ms | 17.14ms | 1165.9% | 316MiB |
| gRPC | Unary | 1,024 | 7,326,541 | 7.47ms | 35.91ms | 1154.4% | 438MiB |
| gRPC | Unary TLS | 256 | 7,352,683 | 2.03ms | 14.60ms | 1193.2% | 343MiB |
| gRPC | Unary TLS | 1,024 | 6,984,752 | 7.44ms | 105.70ms | 1247.3% | 485MiB |
| Gateway | Gateway (H2) | 512 | 376,283 | 42.74ms | 150.45ms | 6051.2% | 2.7GiB |
| Gateway | Gateway (H2) | 1,024 | 377,376 | 83.20ms | 309.44ms | 6135.3% | 3.5GiB |
| Gateway | Gateway (H3) | 64 | 81,481 | 25.00ms | 85.00ms | 2997.5% | 986MiB |
| Gateway | Gateway (H3) | 256 | 60,476 | 131.07ms | 766.46ms | 2314.3% | 1.9GiB |
| Gateway | Production Stack | 256 | 262,555 | 16.58ms | 103.04ms | 4378.4% | 1.4GiB |
| Gateway | Production Stack | 1,024 | 207,009 | 73.33ms | 2.40s | 3876.3% | 2.2GiB |
| WebSocket | Echo | 512 | 3,880,055 | 131us | 432us | 6494.8% | 380MiB |
| WebSocket | Echo | 4,096 | 4,065,279 | 1.01ms | 3.35ms | 6260.9% | 515MiB |
| WebSocket | Echo | 16,384 | 3,770,281 | 4.31ms | 12.20ms | 6468.0% | 1017MiB |
| WebSocket | Echo Pipelined | 512 | 61,158,306 | 133us | 299us | 6379.4% | 376MiB |
| WebSocket | Echo Pipelined | 4,096 | 62,883,193 | 1.04ms | 1.47ms | 6237.9% | 524MiB |
| WebSocket | Echo Pipelined | 16,384 | 57,528,835 | 4.51ms | 5.42ms | 6104.6% | 1007MiB |
| WebSocket | Echo Short-lived | 512 | 2,122,224 | 143us | 518us | 5646.2% | 389MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,507,093 | 1.10ms | 2.80ms | 6053.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.
| Entry | Composite | vs cnetmod | |
|---|---|---|---|
| aegon | 7228 | +16% | head to head |
| hical | 5793 | -7% | head to head |
| libuvcpp | 4892 | -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