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

🥇 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.

MedalAwardFieldRank
🥇 GoldWithin its languageRust · HTTP/1.11 of 11
🥇 GoldTest profileEfficiency · Latency-10K1 of 109
🥇 GoldTest profileWorkload · JSON Comp1 of 104
🥈 SilverFamily compositeComposite · HTTP/1.12 of 109
🥈 SilverTest profileConcurrency · Async Delay2 of 105
🥈 SilverTest profileWorkload · JSON TLS2 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.

FamilyRankComposite
HTTP/1.12 of 1097187

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,899,3561.41ms2.68ms6663.2%247MiB
ConnectionPipelined4,09616,695,2733.92ms6.59ms6445.4%267MiB
ConnectionShort-lived4,0962,314,9261.75ms6.27ms6153.1%311MiB
ConcurrencyAsync Delay32,0002,384,49313.33ms14.80ms6388.8%1.0GiB
EfficiencyLatency-10K1,0249,98373.3us112.0us26.5%174MiB
EfficiencyLatency-1M1,024997,329109.9us190.0us2828.2%170MiB
EfficiencyLatency-500K/81,024410,8311733398.4us4601856.0us791.6%96MiB
WorkloadJSON Comp4,096512,0468.01ms25.70ms6242.5%367MiB
WorkloadJSON Comp16,384509,54231.91ms80.50ms6261.0%826MiB
WorkloadJSON TLS4,0961,431,5952.81ms69.46ms6331.7%305MiB
Workload8Gbit51249,34894.3us116.0us226.0%166MiB
DatabaseAsync DB1,024325,1572.57ms21.00ms3731.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.

EntryCompositevs cpeak
ntex6613-8%head to head
tako6474-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