cpeak
Emerging · Rust · engine: hyper · tuned configuration · completeness 4/4
Cpeak for Rust is an HTTP framework on hyper with one single-threaded Tokio event loop per core. Routing, path and query parameters through the Cpeak API, JSON through res.json() (sonic-rs), Cpeak's built-in compression (gzip or brotli, per request; gzip set to level 1), cpeak::sleep() for the waits and Cpeak's https option (rustls) for TLS.
Achievements
🥉 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥉 Bronze | Within its language | Rust · HTTP/1.1 | 3 of 12 |
| 🥉 Bronze | Test profile | Concurrency · CON-1M | 3 of 13 |
| 🥉 Bronze | Test profile | Workload · JSON Comp | 3 of 108 |
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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, 13 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 | 2,925,144 | 1.40ms | 2.75ms | 6214.3% | 233MiB |
| Connection | Pipelined | 4,096 | 16,780,921 | 3.91ms | 6.55ms | 6740.4% | 254MiB |
| Connection | Short-lived | 4,096 | 2,375,667 | 1.70ms | 6.11ms | 6455.9% | 307MiB |
| Concurrency | Async Delay | 32,000 | 2,415,505 | 13.31ms | 14.70ms | 6236.7% | 909MiB |
| Concurrency | CON-1M | 1,000,000 | 250,001 | 76.9us | 140.0us | 865.6% | 23.9GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,955 | 71.0us | 119.0us | 1482.2% | 31.6GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 74.3us | 107.0us | 26.1% | 174MiB |
| Efficiency | Latency-1M | 1,024 | 997,732 | 106.6us | 181.0us | 2717.1% | 176MiB |
| Workload | JSON Comp | 4,096 | 750,135 | 5.47ms | 17.70ms | 6326.2% | 354MiB |
| Workload | JSON Comp | 16,384 | 727,931 | 22.50ms | 57.20ms | 6329.6% | 794MiB |
| Workload | JSON TLS | 4,096 | 1,444,240 | 2.86ms | 71.04ms | 6202.6% | 291MiB |
| Workload | 8Gbit | 512 | 49,178 | 89.0us | 119.0us | 206.9% | 161MiB |
| Database | Async DB | 1,024 | 315,163 | 3.25ms | 16.20ms | 3105.5% | 240MiB |
Compared with
The Rust web frameworks around cpeak 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 cpeak | |
|---|---|---|---|
| ntex | 6384 | +4% | head to head |
| Proa | 6345 | +3% | head to head |
| actix | 5281 | -14% | head to head |
| tako | 4904 | -20% | head to head |
Compare cpeak with any Rust entry · Compare cpeak with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry