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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Test profile | Concurrency · CON-1M | 1 of 6 |
| 🥇 Gold | Test profile | Database · Fortunes | 1 of 6 |
| 🥇 Gold | Test profile | WebSocket · Echo Short-lived | 1 of 23 |
| 🥈 Silver | Family composite | Composite · Database | 2 of 8 |
| 🥈 Silver | Test profile | Concurrency · CON-1M-TLS | 2 of 6 |
| 🥉 Bronze | Family composite | Composite · HTTP/1.1 | 3 of 88 |
| 🥉 Bronze | Family composite | Composite · WebSocket | 3 of 31 |
| 🥉 Bronze | Test profile | Connection · Baseline | 3 of 88 |
| 🥉 Bronze | Test profile | Connection · Short-lived | 3 of 88 |
| 🥉 Bronze | Test profile | Database · Async DB | 3 of 8 |
| 🥉 Bronze | Test profile | WebSocket · Echo Pipelined | 3 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.
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.
| Suite | Tool | Passed | Failed |
|---|---|---|---|
| HTTP/1.1 | http11probe d50d818 | 155 of 159 (97.5%) | 4 |
| WebSocket | autobahn-testsuite 25.10.1 | 244 of 244 (100%) | 0 |
HTTP/1.1: what failed
| Test | Expected | Got |
|---|---|---|
COMP-OPTIONS-STAR OPTIONS * is the only valid asterisk-form request (RFC 9112 §3.2.4, MUST) | 2xx or 405; close/timeout = warn | 404, connection left open |
COMP-METHOD-CONNECT CONNECT to an origin server must be rejected (RFC 9110 §9.3.6, SHOULD) | 400/405/501 or close | 404, connection closed |
COMP-HOST-EMPTY-VALUE Empty Host header value must be rejected (RFC 9112 §3.2, MUST) | 400 or close | 200, 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 2xx | 501, connection closed |
Every result
Alpha Round, 23 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,328,878 | 1.23ms | 2.03ms | 6645.8% | 224MiB |
| Connection | Pipelined | 4,096 | 4,285,966 | 15.33ms | 24.80ms | 6439.7% | 232MiB |
| Connection | Short-lived | 4,096 | 2,529,377 | 1.60ms | 14.00ms | 6366.6% | 116MiB |
| Concurrency | Async Delay | 32,000 | 2,214,312 | 14.48ms | 20.30ms | 6381.9% | 1.4GiB |
| Concurrency | CON-1M | 1,000,000 | 250,001 | 78.2us | 144.0us | 1041.3% | 43.1GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,967 | 72.0us | 122.0us | 1682.7% | 55.2GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 72.6us | 100.0us | 25.3% | 82MiB |
| Efficiency | Latency-1M | 1,024 | 997,994 | 102.1us | 200.0us | 3038.5% | 82MiB |
| Workload | JSON Comp | 4,096 | 547,888 | 7.41ms | 159.40ms | 6345.3% | 410MiB |
| Workload | JSON Comp | 16,384 | 549,527 | 27.96ms | 716.70ms | 6572.2% | 380MiB |
| Workload | JSON TLS | 4,096 | 1,141,348 | 3.56ms | 60.11ms | 6606.9% | 420MiB |
| Workload | 8Gbit | 512 | 49,319 | 87.0us | 117.0us | 207.7% | 94MiB |
| Workload | Static TLS | 1,024 | 380,060 | 2.94ms | 25.97ms | 6571.1% | 196MiB |
| Database | Async DB | 1,024 | 306,027 | 3.35ms | 12.90ms | 3243.0% | 148MiB |
| Database | Fortunes | 1,024 | 210,860 | 4.88ms | 21.20ms | 3229.2% | 152MiB |
| WebSocket | Echo | 512 | 4,035,039 | 126us | 211us | 6421.1% | 51MiB |
| WebSocket | Echo | 4,096 | 3,964,109 | 1.03ms | 1.92ms | 6115.7% | 214MiB |
| WebSocket | Echo | 16,384 | 3,287,533 | 4.98ms | 16.90ms | 5741.8% | 785MiB |
| WebSocket | Echo Pipelined | 512 | 59,390,460 | 137us | 266us | 6447.4% | 52MiB |
| WebSocket | Echo Pipelined | 4,096 | 57,583,420 | 1.14ms | 1.89ms | 6125.8% | 212MiB |
| WebSocket | Echo Pipelined | 16,384 | 45,840,752 | 5.72ms | 18.30ms | 6011.5% | 776MiB |
| WebSocket | Echo Short-lived | 512 | 2,467,784 | 169us | 366us | 6217.5% | 80MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,525,864 | 282us | 574us | 6316.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.
| Entry | Composite | vs dusty | |
|---|---|---|---|
| dusty-tuned | 6347 | +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