HttpArena
Frameworks

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.

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.

MedalAwardFieldRank
🥈 SilverWithin its languageRust · HTTP/1.12 of 9
🥈 SilverTest profileWebSocket · Echo Short-lived2 of 22
🥉 BronzeTest profileConnection · Baseline3 of 85
🥉 BronzeTest profileConnection · Short-lived3 of 85
🥉 BronzeTest profileGateway · Gateway (H3)3 of 7
🥉 BronzeTest profileWebSocket · Echo3 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.

FamilyRankComposite
HTTP/1.14 of 856474
HTTP/221 of 31554
HTTP/39 of 16510
Gateway6 of 8896
gRPC10 of 10174
WebSocket10 of 302065

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,282,2441.25ms2.44ms6384.8%124MiB
ConnectionPipelined4,09622,398,3802.92ms3.00ms6478.8%125MiB
ConnectionShort-lived4,0962,461,7241.63ms3.16ms6169.4%154MiB
ConcurrencyAsync Delay32,0002,244,79914.17ms17.60ms5157.8%969MiB
EfficiencyLatency-10K1,0249,98173.1us106.0us26.0%50MiB
EfficiencyLatency-1M1,024997,555101.5us177.0us2678.2%51MiB
EfficiencyLatency-500K/81,024460,673768077.7us1575424.0us799.0%37MiB
WorkloadJSON Comp4,096211,10819.37ms28.30ms6481.9%245MiB
WorkloadJSON Comp16,384208,61477.60ms150.00ms6430.2%593MiB
WorkloadJSON TLS4,096923,1944.57ms40.63ms6425.3%293MiB
Workload8Gbit51249,100102.1us136.0us236.7%101MiB
WorkloadStatic TLS1,024134,3336.99ms47.10ms2944.7%162MiB
DatabaseAsync DB1,024242,4053.69ms5.86ms3689.0%97MiB
HTTP/2Baseline256740,66934.19ms124.60ms4605.5%354MiB
HTTP/2Baseline1,024683,442114.88ms468.97ms4674.6%1.0GiB
HTTP/2Static256128,97562.18ms325.80ms3132.5%335MiB
HTTP/2Static1,024126,274219.32ms629.64ms2703.2%1.0GiB
HTTP/2Baseline (h2c)256744,03834.20ms135.70ms4631.5%393MiB
HTTP/2Baseline (h2c)1,024666,838104.74ms504.21ms4616.7%1.2GiB
HTTP/2Baseline (h2c)4,096656,424264.33ms1.44s4842.2%2.2GiB
HTTP/2JSON (h2c)1,024723,15533.12ms545.11ms4403.9%403MiB
HTTP/2JSON (h2c)4,096621,319146.64ms3.97s4323.8%1.2GiB
HTTP/3Baseline64540,3170us0us2847.7%98MiB
HTTP/3Static64116,5630us0us2909.9%148MiB
gRPCUnary256578,01944.16ms192.48ms5026.6%359MiB
gRPCUnary1,024513,618163.90ms656.27ms5034.0%1.1GiB
gRPCUnary TLS256622,53734.90ms170.64ms4906.5%318MiB
gRPCUnary TLS1,024508,813146.65ms589.95ms4979.4%1.0GiB
GatewayGateway (H2)51277,411199.07ms2.16s4008.5%2.8GiB
GatewayGateway (H2)1,02468,883411.11ms4.02s3822.3%5.3GiB
GatewayGateway (H3)6483,04224.52ms87.01ms3448.6%427MiB
GatewayGateway (H3)25676,48339.77ms165.95ms3389.5%560MiB
GatewayProduction Stack25654,37776.92ms528.48ms3236.0%974MiB
GatewayProduction Stack1,02447,171331.09ms1.97s3451.3%2.9GiB
WebSocketEcho5124,091,198124us159us6229.5%38MiB
WebSocketEcho4,0964,062,1111.01ms1.08ms6445.6%122MiB
WebSocketEcho16,3843,508,8194.63ms6.24ms6126.4%390MiB
WebSocketEcho Pipelined5125,752,7821.42ms1.83ms6461.9%40MiB
WebSocketEcho Pipelined4,0966,007,90410.91ms22.40ms6172.3%120MiB
WebSocketEcho Pipelined16,3845,835,14044.31ms45.90ms6242.5%386MiB
WebSocketEcho Short-lived5122,150,090132us376us6021.7%51MiB
WebSocketEcho Short-lived4,0962,543,8611.09ms1.76ms6084.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.

EntryCompositevs tako
cpeak7187+11%head to head
ntex6613+2%head to head
actix6322-2%head to head
trillium-tuned5820-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