HttpArena
Frameworks

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

🥇 4 Gold. 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
🥇 GoldFamily compositeComposite · HTTP/1.11 of 95
🥇 GoldWithin its languageRust · HTTP/1.11 of 10
🥇 GoldTest profileWorkload · JSON Comp1 of 91
🥇 GoldTest profileWorkload · JSON TLS1 of 92

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.

FamilyRankComposite
HTTP/1.11 of 957298

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0962,586,5881.58ms4.05ms6656.7%384MiB
ConnectionPipelined4,09614,496,1474.52ms8.22ms6301.1%409MiB
ConnectionShort-lived4,0962,118,9811.91ms7.20ms6261.4%462MiB
ConcurrencyAsync Delay32,0002,102,54415.12ms17.60ms6403.2%1.6GiB
EfficiencyLatency-10K1,0249,98077.5us110.0us28.2%248MiB
EfficiencyLatency-1M1,024997,967114.3us197.0us3005.7%250MiB
EfficiencyLatency-500K/81,024383,4822284859.5us5642240.0us791.6%75MiB
WorkloadJSON Comp4,096493,1878.31ms26.30ms6169.8%440MiB
WorkloadJSON Comp16,384476,68234.01ms86.10ms6558.4%927MiB
WorkloadJSON TLS4,0961,284,1033.16ms48.13ms6334.3%615MiB
Workload8Gbit51249,36792.3us123.0us215.1%346MiB
DatabaseAsync DB1,024320,5432.64ms24.20ms3891.9%362MiB

Compared with

The Rust entries around cpeak on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs cpeak
tako6992-4%head to head
actix6638-9%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