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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Rust · HTTP/1.1 | 1 of 3 |
| 🥈 Silver | Test profile | Connection · Short-lived | 2 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 6 of 26 | 4738 |
Every result
Alpha Round, 6 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 | 4,187,085 | 977us | 1.34ms | 6417.9% | 187MiB |
| Connection | Pipelined | 4,096 | 54,755,795 | 1.20ms | 1.62ms | 6057.7% | 164MiB |
| Connection | Short-lived | 4,096 | 2,721,455 | 1.38ms | 2.36ms | 5727.1% | 426MiB |
| Concurrency | Async Delay | 32,000 | 2,356,577 | 13.48ms | 16.40ms | 4262.9% | 1.2GiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 75.0us | 92.0us | 21.2% | 59MiB |
| Efficiency | Latency-1M | 1,024 | 997,595 | 136.9us | 166.0us | 2017.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.
| Entry | Composite | vs tokio | |
|---|---|---|---|
| actix | 6880 | +45% | head to head |
| ntex | 5956 | +26% | head to head |
| mq-bridge | 4610 | -3% | head to head |
| axum | 4494 | -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