HttpArena

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.

MedalAwardFieldRank
🥉 BronzeWithin its languageRust · HTTP/1.13 of 12
🥉 BronzeTest profileConcurrency · CON-1M3 of 13
🥉 BronzeTest profileWorkload · JSON Comp3 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.

FamilyRankComposite
HTTP/1.15 of 1136152
Database8 of 22889

Every result

Alpha Round, 13 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,925,1441.40ms2.75ms6214.3%233MiB
ConnectionPipelined4,09616,780,9213.91ms6.55ms6740.4%254MiB
ConnectionShort-lived4,0962,375,6671.70ms6.11ms6455.9%307MiB
ConcurrencyAsync Delay32,0002,415,50513.31ms14.70ms6236.7%909MiB
ConcurrencyCON-1M1,000,000250,00176.9us140.0us865.6%23.9GiB
ConcurrencyCON-1M-TLS1,000,000249,95571.0us119.0us1482.2%31.6GiB
EfficiencyLatency-10K1,0249,98174.3us107.0us26.1%174MiB
EfficiencyLatency-1M1,024997,732106.6us181.0us2717.1%176MiB
WorkloadJSON Comp4,096750,1355.47ms17.70ms6326.2%354MiB
WorkloadJSON Comp16,384727,93122.50ms57.20ms6329.6%794MiB
WorkloadJSON TLS4,0961,444,2402.86ms71.04ms6202.6%291MiB
Workload8Gbit51249,17889.0us119.0us206.9%161MiB
DatabaseAsync DB1,024315,1633.25ms16.20ms3105.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.

EntryCompositevs cpeak
ntex6384+4%head to head
Proa6345+3%head to head
actix5281-14%head to head
tako4904-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