tako
Emerging · Rust · engine: hyper · standard configuration · completeness 4/4
Tako 2.4.2 on hyper and Tokio, default configuration. Plain HTTP/1.1 and WebSocket on :8080 run tako's per-thread server (one current-thread runtime per CPU, SO_REUSEPORT listeners, PerThreadConfig::default()); h2c (:8082), HTTP/1.1 and h2 over rustls (:8081, :8443) and HTTP/3 over quinn (:8443/udp) run tako's multi-thread Server. Routing, Path/Query/State/body extractors and the Json responder through the tako API, the compression plugin with default settings on the JSON routes, ServeDir with precompressed .br/.gz sidecars read from disk per request, TakoWs for /ws, and deadpool-postgres for async-db.
- Official repository
- Official website
- Benchmark implementation
- All Rust entries, compared
- Open the leaderboard
Achievements
🥈 2 Silver · 🥉 4 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥈 Silver | Within its language | Rust · HTTP/1.1 | 2 of 9 |
| 🥈 Silver | Test profile | WebSocket · Echo Short-lived | 2 of 22 |
| 🥉 Bronze | Test profile | Connection · Baseline | 3 of 85 |
| 🥉 Bronze | Test profile | Connection · Short-lived | 3 of 85 |
| 🥉 Bronze | Test profile | Gateway · Gateway (H3) | 3 of 7 |
| 🥉 Bronze | Test profile | WebSocket · Echo | 3 of 30 |
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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 4 of 85 | 6474 |
| HTTP/2 | 21 of 31 | 554 |
| HTTP/3 | 9 of 16 | 510 |
| Gateway | 6 of 8 | 896 |
| gRPC | 10 of 10 | 174 |
| WebSocket | 10 of 30 | 2065 |
Every result
Alpha Round, 42 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 | 3,282,244 | 1.25ms | 2.44ms | 6384.8% | 124MiB |
| Connection | Pipelined | 4,096 | 22,398,380 | 2.92ms | 3.00ms | 6478.8% | 125MiB |
| Connection | Short-lived | 4,096 | 2,461,724 | 1.63ms | 3.16ms | 6169.4% | 154MiB |
| Concurrency | Async Delay | 32,000 | 2,244,799 | 14.17ms | 17.60ms | 5157.8% | 969MiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 73.1us | 106.0us | 26.0% | 50MiB |
| Efficiency | Latency-1M | 1,024 | 997,555 | 101.5us | 177.0us | 2678.2% | 51MiB |
| Efficiency | Latency-500K/8 | 1,024 | 460,673 | 768077.7us | 1575424.0us | 799.0% | 37MiB |
| Workload | JSON Comp | 4,096 | 211,108 | 19.37ms | 28.30ms | 6481.9% | 245MiB |
| Workload | JSON Comp | 16,384 | 208,614 | 77.60ms | 150.00ms | 6430.2% | 593MiB |
| Workload | JSON TLS | 4,096 | 923,194 | 4.57ms | 40.63ms | 6425.3% | 293MiB |
| Workload | 8Gbit | 512 | 49,100 | 102.1us | 136.0us | 236.7% | 101MiB |
| Workload | Static TLS | 1,024 | 134,333 | 6.99ms | 47.10ms | 2944.7% | 162MiB |
| Database | Async DB | 1,024 | 242,405 | 3.69ms | 5.86ms | 3689.0% | 97MiB |
| HTTP/2 | Baseline | 256 | 740,669 | 34.19ms | 124.60ms | 4605.5% | 354MiB |
| HTTP/2 | Baseline | 1,024 | 683,442 | 114.88ms | 468.97ms | 4674.6% | 1.0GiB |
| HTTP/2 | Static | 256 | 128,975 | 62.18ms | 325.80ms | 3132.5% | 335MiB |
| HTTP/2 | Static | 1,024 | 126,274 | 219.32ms | 629.64ms | 2703.2% | 1.0GiB |
| HTTP/2 | Baseline (h2c) | 256 | 744,038 | 34.20ms | 135.70ms | 4631.5% | 393MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 666,838 | 104.74ms | 504.21ms | 4616.7% | 1.2GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 656,424 | 264.33ms | 1.44s | 4842.2% | 2.2GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 723,155 | 33.12ms | 545.11ms | 4403.9% | 403MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 621,319 | 146.64ms | 3.97s | 4323.8% | 1.2GiB |
| HTTP/3 | Baseline | 64 | 540,317 | 0us | 0us | 2847.7% | 98MiB |
| HTTP/3 | Static | 64 | 116,563 | 0us | 0us | 2909.9% | 148MiB |
| gRPC | Unary | 256 | 578,019 | 44.16ms | 192.48ms | 5026.6% | 359MiB |
| gRPC | Unary | 1,024 | 513,618 | 163.90ms | 656.27ms | 5034.0% | 1.1GiB |
| gRPC | Unary TLS | 256 | 622,537 | 34.90ms | 170.64ms | 4906.5% | 318MiB |
| gRPC | Unary TLS | 1,024 | 508,813 | 146.65ms | 589.95ms | 4979.4% | 1.0GiB |
| Gateway | Gateway (H2) | 512 | 77,411 | 199.07ms | 2.16s | 4008.5% | 2.8GiB |
| Gateway | Gateway (H2) | 1,024 | 68,883 | 411.11ms | 4.02s | 3822.3% | 5.3GiB |
| Gateway | Gateway (H3) | 64 | 83,042 | 24.52ms | 87.01ms | 3448.6% | 427MiB |
| Gateway | Gateway (H3) | 256 | 76,483 | 39.77ms | 165.95ms | 3389.5% | 560MiB |
| Gateway | Production Stack | 256 | 54,377 | 76.92ms | 528.48ms | 3236.0% | 974MiB |
| Gateway | Production Stack | 1,024 | 47,171 | 331.09ms | 1.97s | 3451.3% | 2.9GiB |
| WebSocket | Echo | 512 | 4,091,198 | 124us | 159us | 6229.5% | 38MiB |
| WebSocket | Echo | 4,096 | 4,062,111 | 1.01ms | 1.08ms | 6445.6% | 122MiB |
| WebSocket | Echo | 16,384 | 3,508,819 | 4.63ms | 6.24ms | 6126.4% | 390MiB |
| WebSocket | Echo Pipelined | 512 | 5,752,782 | 1.42ms | 1.83ms | 6461.9% | 40MiB |
| WebSocket | Echo Pipelined | 4,096 | 6,007,904 | 10.91ms | 22.40ms | 6172.3% | 120MiB |
| WebSocket | Echo Pipelined | 16,384 | 5,835,140 | 44.31ms | 45.90ms | 6242.5% | 386MiB |
| WebSocket | Echo Short-lived | 512 | 2,150,090 | 132us | 376us | 6021.7% | 51MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,543,861 | 1.09ms | 1.76ms | 6084.7% | 139MiB |
Compared with
The Rust web frameworks around tako 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.
| Entry | Composite | vs tako | |
|---|---|---|---|
| cpeak | 7187 | +11% | head to head |
| ntex | 6613 | +2% | head to head |
| actix | 6322 | -2% | head to head |
| trillium-tuned | 5820 | -10% | head to head |
Compare tako with any Rust entry · Compare tako with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry