HttpArena

tako

Emerging · Rust · engine: hyper · standard configuration · completeness 4/4

Tako 2.7.1 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, WebSocketUpgrade for /ws, and deadpool-postgres for async-db.

Achievements

🥈 4 Silver · 🥉 1 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.

MedalAwardFieldRank
🥈 SilverFamily compositeComposite · WebSocket2 of 31
🥈 SilverWithin its languageRust · WebSocket2 of 7
🥈 SilverTest profileWebSocket · Echo2 of 31
🥈 SilverTest profileWebSocket · Echo Pipelined2 of 28
🥉 BronzeWithin its languageRust · HTTP/1.13 of 9

Composite rank

Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.17 of 884940
HTTP/225 of 34427
HTTP/310 of 17287
Gateway6 of 8843
gRPC10 of 10155
WebSocket2 of 312732

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,201,4841.28ms2.52ms6335.0%124MiB
ConnectionPipelined4,09620,799,9683.15ms3.29ms6767.5%121MiB
ConnectionShort-lived4,0962,421,7031.66ms3.20ms6447.1%154MiB
ConcurrencyAsync Delay32,0002,236,35414.19ms17.70ms5165.3%921MiB
EfficiencyLatency-10K1,0249,98272.3us105.0us26.6%50MiB
EfficiencyLatency-1M1,024997,802103.7us180.0us2636.7%49MiB
WorkloadJSON Comp4,096204,79519.94ms28.90ms6478.6%243MiB
WorkloadJSON Comp16,384204,55479.09ms141.70ms6501.0%592MiB
WorkloadJSON TLS4,0961,001,6963.63ms39.49ms5949.9%224MiB
Workload8Gbit51248,904104.6us135.0us252.0%93MiB
WorkloadStatic TLS1,024136,4036.69ms43.59ms3608.4%160MiB
HTTP/2Baseline256872,98028.83ms75.56ms4754.1%208MiB
HTTP/2Baseline1,024719,930112.60ms297.44ms4770.7%544MiB
HTTP/2Static256129,74461.92ms195.15ms2846.6%337MiB
HTTP/2Static1,024129,095220.07ms416.25ms3172.9%977MiB
HTTP/2Baseline (h2c)256865,08129.23ms75.88ms4817.3%209MiB
HTTP/2Baseline (h2c)1,024734,010118.06ms320.96ms4776.7%551MiB
HTTP/2Baseline (h2c)4,096690,356251.40ms861.38ms4818.1%1.3GiB
HTTP/2JSON (h2c)1,024606,56340.05ms121.95ms4065.6%483MiB
HTTP/2JSON (h2c)4,096522,847156.84ms670.06ms3813.1%1.3GiB
HTTP/3Baseline64534,8757.34ms89.23ms3061.3%102MiB
HTTP/3Static64113,79830.65ms445.38ms3298.6%172MiB
gRPCUnary256578,66142.92ms110.61ms5128.5%201MiB
gRPCUnary1,024493,020139.18ms469.42ms5171.3%532MiB
gRPCUnary TLS256575,89143.85ms110.69ms5188.0%226MiB
gRPCUnary TLS1,024498,325139.36ms443.27ms5139.5%584MiB
GatewayGateway (H2)51276,150200.80ms938.92ms3900.4%2.6GiB
GatewayGateway (H2)1,02470,030409.46ms1.99s3831.0%5.4GiB
GatewayGateway (H3)6481,85724.82ms87.62ms3477.9%488MiB
GatewayGateway (H3)25658,187134.06ms799.05ms2636.9%1.5GiB
GatewayProduction Stack25654,20577.48ms223.21ms3206.2%1003MiB
GatewayProduction Stack1,02447,003345.31ms837.61ms3375.5%3.2GiB
WebSocketEcho5124,120,095123us158us6328.1%40MiB
WebSocketEcho4,0964,094,900992us1.06ms6056.1%113MiB
WebSocketEcho16,3843,711,2594.37ms5.26ms6101.8%394MiB
WebSocketEcho Pipelined51257,394,140142us250us6602.8%41MiB
WebSocketEcho Pipelined4,09655,968,9371.16ms1.64ms6260.2%114MiB
WebSocketEcho Pipelined16,38451,593,8115.03ms6.56ms6078.2%364MiB
WebSocketEcho Short-lived5122,143,254136us370us5859.9%50MiB
WebSocketEcho Short-lived4,0962,573,7281.11ms1.76ms6101.9%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.

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