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. Default configuration: 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), cpeak::sleep() for the waits and Cpeak's https option (rustls) for TLS.
Achievements
🥇 3 Gold · 🥈 3 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 | Within its language | Rust · HTTP/1.1 | 1 of 11 |
| 🥇 Gold | Test profile | Efficiency · Latency-10K | 1 of 109 |
| 🥇 Gold | Test profile | Workload · JSON Comp | 1 of 104 |
| 🥈 Silver | Family composite | Composite · HTTP/1.1 | 2 of 109 |
| 🥈 Silver | Test profile | Concurrency · Async Delay | 2 of 105 |
| 🥈 Silver | Test profile | Workload · JSON TLS | 2 of 105 |
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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 2 of 109 | 7187 |
Every result
Alpha Round, 12 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,899,356 | 1.41ms | 2.68ms | 6663.2% | 247MiB |
| Connection | Pipelined | 4,096 | 16,695,273 | 3.92ms | 6.59ms | 6445.4% | 267MiB |
| Connection | Short-lived | 4,096 | 2,314,926 | 1.75ms | 6.27ms | 6153.1% | 311MiB |
| Concurrency | Async Delay | 32,000 | 2,384,493 | 13.33ms | 14.80ms | 6388.8% | 1.0GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 73.3us | 112.0us | 26.5% | 174MiB |
| Efficiency | Latency-1M | 1,024 | 997,329 | 109.9us | 190.0us | 2828.2% | 170MiB |
| Efficiency | Latency-500K/8 | 1,024 | 410,831 | 1733398.4us | 4601856.0us | 791.6% | 96MiB |
| Workload | JSON Comp | 4,096 | 512,046 | 8.01ms | 25.70ms | 6242.5% | 367MiB |
| Workload | JSON Comp | 16,384 | 509,542 | 31.91ms | 80.50ms | 6261.0% | 826MiB |
| Workload | JSON TLS | 4,096 | 1,431,595 | 2.81ms | 69.46ms | 6331.7% | 305MiB |
| Workload | 8Gbit | 512 | 49,348 | 94.3us | 116.0us | 226.0% | 166MiB |
| Database | Async DB | 1,024 | 325,157 | 2.57ms | 21.00ms | 3731.5% | 263MiB |
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 | 6613 | -8% | head to head |
| tako | 6474 | -10% | 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