HttpArena
Frameworks

tokio

Engine · Rust

Minimal HTTP/1.1 server on raw tokio — no HTTP framework. A hand-rolled request parser (request line, headers, Content-Length + chunked bodies, keep-alive, pipelining, fragmented reads) on a tokio TcpStream, with one current-thread runtime per core and SO_REUSEPORT.

Achievements

🥇 1 Gold · 🥈 1 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 3
🥈 SilverTest profileConnection · Short-lived2 of 26

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.16 of 264738

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0964,187,085977us1.34ms6417.9%187MiB
ConnectionPipelined4,09654,755,7951.20ms1.62ms6057.7%164MiB
ConnectionShort-lived4,0962,721,4551.38ms2.36ms5727.1%426MiB
ConcurrencyAsync Delay32,0002,356,57713.48ms16.40ms4262.9%1.2GiB
EfficiencyLatency-10K1,0249,98275.0us92.0us21.2%59MiB
EfficiencyLatency-1M1,024997,595136.9us166.0us2017.2%59MiB

Compared with

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

EntryCompositevs tokio
actix6880+45%head to head
ntex5956+26%head to head
mq-bridge4610-3%head to head
axum4494-5%head to head

Compare tokio with any Rust entry · Compare tokio with any entry, in any language · Every Rust entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry