HttpArena

dusty

Emerging · Zig · engine: zio · standard configuration · completeness 4/4

Dusty HTTP server on the zio multi-threaded async runtime (io_uring where available, epoll fallback). Router with params/wildcards, JSON through std.json, gzip, WebSocket, TLS through AWS-LC's libssl. Standard configuration, no tuning.

Achievements

🥇 3 Gold · 🥈 2 Silver · 🥉 6 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
🥇 GoldTest profileConcurrency · CON-1M1 of 6
🥇 GoldTest profileDatabase · Fortunes1 of 6
🥇 GoldTest profileWebSocket · Echo Short-lived1 of 23
🥈 SilverFamily compositeComposite · Database2 of 8
🥈 SilverTest profileConcurrency · CON-1M-TLS2 of 6
🥉 BronzeFamily compositeComposite · HTTP/1.13 of 88
🥉 BronzeFamily compositeComposite · WebSocket3 of 31
🥉 BronzeTest profileConnection · Baseline3 of 88
🥉 BronzeTest profileConnection · Short-lived3 of 88
🥉 BronzeTest profileDatabase · Async DB3 of 8
🥉 BronzeTest profileWebSocket · Echo Pipelined3 of 28

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.13 of 885996
WebSocket3 of 312726
Database2 of 81809

Protocol compliance

The conformance suites this entry subscribes to, run against it on the benchmark machine: Http11Probe on HTTP/1.1, h2spec on HTTP/2, h3spec on HTTP/3 and Autobahn on WebSocket. A score, not part of the composite. How it works.

SuiteToolPassedFailed
HTTP/1.1http11probe d50d818155 of 159 (97.5%)4
WebSocketautobahn-testsuite 25.10.1244 of 244 (100%)0

HTTP/1.1: what failed

TestExpectedGot
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST)2xx or 405; close/timeout = warn404, connection left open
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD)400/405/501 or close404, connection closed
COMP-HOST-EMPTY-VALUE Empty Host header value must be rejected (RFC 9112 §3.2, MUST)400 or close200, connection left open
SMUG-TE-LEADING-COMMA Transfer-Encoding with leading comma (, chunked) — RFC says empty list elements MUST be ignored (RFC 9110 §5.6.1, SHOULD)400 or 2xx501, connection closed

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,328,8781.23ms2.03ms6645.8%224MiB
ConnectionPipelined4,0964,285,96615.33ms24.80ms6439.7%232MiB
ConnectionShort-lived4,0962,529,3771.60ms14.00ms6366.6%116MiB
ConcurrencyAsync Delay32,0002,214,31214.48ms20.30ms6381.9%1.4GiB
ConcurrencyCON-1M1,000,000250,00178.2us144.0us1041.3%43.1GiB
ConcurrencyCON-1M-TLS1,000,000249,96772.0us122.0us1682.7%55.2GiB
EfficiencyLatency-10K1,0249,98172.6us100.0us25.3%82MiB
EfficiencyLatency-1M1,024997,994102.1us200.0us3038.5%82MiB
WorkloadJSON Comp4,096547,8887.41ms159.40ms6345.3%410MiB
WorkloadJSON Comp16,384549,52727.96ms716.70ms6572.2%380MiB
WorkloadJSON TLS4,0961,141,3483.56ms60.11ms6606.9%420MiB
Workload8Gbit51249,31987.0us117.0us207.7%94MiB
WorkloadStatic TLS1,024380,0602.94ms25.97ms6571.1%196MiB
DatabaseAsync DB1,024306,0273.35ms12.90ms3243.0%148MiB
DatabaseFortunes1,024210,8604.88ms21.20ms3229.2%152MiB
WebSocketEcho5124,035,039126us211us6421.1%51MiB
WebSocketEcho4,0963,964,1091.03ms1.92ms6115.7%214MiB
WebSocketEcho16,3843,287,5334.98ms16.90ms5741.8%785MiB
WebSocketEcho Pipelined51259,390,460137us266us6447.4%52MiB
WebSocketEcho Pipelined4,09657,583,4201.14ms1.89ms6125.8%212MiB
WebSocketEcho Pipelined16,38445,840,7525.72ms18.30ms6011.5%776MiB
WebSocketEcho Short-lived5122,467,784169us366us6217.5%80MiB
WebSocketEcho Short-lived4,0962,525,864282us574us6316.8%124MiB

Compared with

The Zig web frameworks around dusty 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 dusty
dusty-tuned6347+6%head to head

Compare dusty with any Zig entry · Compare dusty with any entry, in any language · Every Zig entry, ranked

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