apex-tuned
Engine · C · engine: apex
Apex HTTP engine in C23: shared-nothing thread-per-core epoll runtime, CPU affinity pinning, zero-copy buffer recycling, streaming HTTP parser with TCP fragmentation resilience, route parameter trie, middleware pipeline, Brotli compression, and tuned TLS 1.3.
Achievements
🥇 5 Gold · 🥈 1 Silver · 🥉 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 17 |
| 🥇 Gold | Within its language | C · HTTP/1.1 | 1 of 3 |
| 🥇 Gold | Test profile | Connection · Short-lived | 1 of 46 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 16 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline (h2c) | 1 of 14 |
| 🥈 Silver | Test profile | Efficiency · Latency-10K | 2 of 44 |
| 🥉 Bronze | Test profile | Connection · Baseline | 3 of 46 |
| 🥉 Bronze | Test profile | HTTP/2 · Static | 3 of 16 |
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.
Every result
Alpha Round, 21 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 | 4,403,856 | 929us | 1.96ms | 6194.6% | 250MiB |
| Connection | Pipelined | 4,096 | 59,539,961 | 1.10ms | 1.39ms | 6036.2% | 241MiB |
| Connection | Short-lived | 4,096 | 2,822,803 | 1.32ms | 1.80ms | 5870.1% | 255MiB |
| Concurrency | Async Delay | 32,000 | 1,997,036 | 15.88ms | 21.50ms | 2896.4% | 370MiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 73.4us | 110.0us | 26.7% | 219MiB |
| Efficiency | Latency-1M | 1,024 | 998,042 | 79.4us | 138.0us | 2077.8% | 224MiB |
| Efficiency | Latency-500K/8 | 1,024 | 498,523 | 7021.5us | 88160.0us | 775.1% | 48MiB |
| Workload | JSON Comp | 4,096 | 889,808 | 4.58ms | 13.40ms | 6715.3% | 246MiB |
| Workload | JSON Comp | 16,384 | 865,005 | 18.75ms | 46.00ms | 6738.4% | 341MiB |
| Workload | JSON TLS | 4,096 | 1,822,383 | 1.39ms | 79.25ms | 5426.2% | 330MiB |
| Workload | 8Gbit | 512 | 49,325 | 90.2us | 116.0us | 226.4% | 241MiB |
| Workload | Static TLS | 1,024 | 1,048,575 | 1.00ms | 39.69ms | 6491.2% | 265MiB |
| HTTP/2 | Baseline | 256 | 16,094,035 | 839us | 30.55ms | 3076.9% | 244MiB |
| HTTP/2 | Baseline | 1,024 | 16,030,277 | 3.06ms | 86.69ms | 3217.3% | 310MiB |
| HTTP/2 | Static | 256 | 1,431,689 | 5.43ms | 189.12ms | 6466.6% | 268MiB |
| HTTP/2 | Static | 1,024 | 1,424,828 | 21.05ms | 213.27ms | 6529.9% | 343MiB |
| HTTP/2 | Baseline (h2c) | 256 | 16,350,916 | 1.03ms | 44.38ms | 1961.4% | 226MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 16,634,930 | 2.98ms | 16.26ms | 2912.8% | 287MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 15,055,383 | 12.93ms | 29.38ms | 2878.2% | 531MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 5,961,855 | 3.57ms | 60.23ms | 4172.8% | 336MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 5,232,884 | 21.16ms | 86.51ms | 6240.7% | 601MiB |
Compared with
The C HTTP engines around apex-tuned 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.
| Entry | Composite | vs apex-tuned | |
|---|---|---|---|
| mongoose | 5800 | -10% | head to head |
| libreactorng | 3734 | -42% | head to head |
Compare apex-tuned with any C entry · Compare apex-tuned with any entry, in any language · Every C entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry