dusty-tuned
Emerging · Zig · engine: zio · tuned configuration · completeness 4/4
Dusty HTTP server on the zio multi-threaded async runtime. Same as the dusty entry, except that JSON goes through json.zig instead of std.json, TLS goes through ztls's native engine instead of AWS-LC's libssl, and there are no request or keep-alive timeouts.
Achievements
🥇 1 Gold · 🥈 3 Silver. 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 | Workload · JSON TLS | 1 of 109 |
| 🥈 Silver | Family composite | Composite · Database | 2 of 22 |
| 🥈 Silver | Test profile | Database · Async DB | 2 of 22 |
| 🥈 Silver | Test profile | Database · Fortunes | 2 of 11 |
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 |
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, 15 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,370,942 | 1.22ms | 1.76ms | 6655.4% | 240MiB |
| Connection | Pipelined | 4,096 | 4,243,255 | 15.48ms | 23.90ms | 6447.2% | 252MiB |
| Connection | Short-lived | 4,096 | 2,488,580 | 1.63ms | 14.20ms | 6161.3% | 124MiB |
| Concurrency | Async Delay | 32,000 | 2,219,442 | 14.45ms | 21.80ms | 6373.6% | 1.5GiB |
| Concurrency | CON-1M | 1,000,000 | 250,000 | 77.5us | 145.0us | 1044.3% | 46.9GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,957 | 66.0us | 108.0us | 1522.9% | 54.6GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 81.5us | 102.0us | 25.1% | 77MiB |
| Efficiency | Latency-1M | 1,024 | 997,801 | 95.7us | 193.0us | 2794.8% | 91MiB |
| Workload | JSON Comp | 4,096 | 656,112 | 6.21ms | 111.30ms | 6617.0% | 613MiB |
| Workload | JSON Comp | 16,384 | 670,240 | 23.32ms | 578.90ms | 6075.7% | 435MiB |
| Workload | JSON TLS | 4,096 | 1,888,712 | 1.98ms | 48.03ms | 6394.5% | 362MiB |
| Workload | 8Gbit | 512 | 49,020 | 82.3us | 110.0us | 188.3% | 77MiB |
| Workload | Static TLS | 1,024 | 392,422 | 2.86ms | 27.23ms | 6567.5% | 140MiB |
| Database | Async DB | 1,024 | 348,247 | 2.94ms | 12.40ms | 3192.2% | 142MiB |
| Database | Fortunes | 1,024 | 211,840 | 4.83ms | 21.20ms | 3328.2% | 168MiB |
Compared with
The Zig web frameworks around dusty-tuned 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-tuned | |
|---|---|---|---|
| dusty | 5960 | -6% | head to head |
Compare dusty-tuned with any Zig entry · Compare dusty-tuned with any entry, in any language · Every Zig entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry