Zig web framework comparison: any two, head to head
dusty-tuned is ahead of dusty on 14 of the 14 tests they both run. On the HTTP/1.1 composite dusty-tuned scores 7638 and dusty 6948.
Pick any two of the 10 Zig entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.
| Profile | Conns | dusty-tuned | dusty | Delta | dusty-tuned p99 | dusty p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 3,399,844 | 3,323,203 | +2% | 1.79ms | 1.83ms |
| Pipelined | 4,096 | 4,314,403 | 4,259,821 | +1% | 20.20ms | 21.80ms |
| Short-lived | 4,096 | 2,535,904 | 2,535,173 | 0% | 13.90ms | 13.90ms |
| Async Delay | 32,000 | 2,227,512 | 2,130,544 | +5% | 22.30ms | 20.50ms |
| JSON Comp | 4,096 | 650,945 | 549,586 | +18% | 113.00ms | 161.50ms |
| JSON Comp | 16,384 | 654,739 | 542,531 | +21% | 572.20ms | 714.30ms |
| JSON TLS | 4,096 | 1,879,440 | 1,147,761 | +64% | 48.38ms | 41.38ms |
| Static TLS | 1,024 | 418,559 | 381,806 | +10% | 36.68ms | 26.04ms |
| Async DB | 1,024 | 349,417 | 304,196 | +15% | 10.10ms | 11.30ms |
| Fortunes | 1,024 | 282,348 | 276,336 | +2% | 10.10ms | 10.70ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 83.9 | 83.6 | 0% | 104us | 102us |
| Latency-1M | 1,024 | 80.8 | 79.7 | +1% | 199us | 202us |
| Latency-500K/8 | 1,024 | 34.6 | 32.9 | +5% | 6.49s | 6.00s |
| 8Gbit | 512 | 93.6 | 87.7 | +7% | 108us | 117us |
Common comparisons
dusty-tuned vs dusty · dusty-tuned vs zix · dusty-tuned vs libxev · dusty vs zix · dusty vs libxev · zix vs libxev
Questions
Is dusty-tuned faster than dusty?
dusty-tuned is ahead of dusty on 14 of the 14 tests they both run. On the HTTP/1.1 composite dusty-tuned scores 7638 and dusty 6948. Both run on the same machine, in the same round, against the same profiles.
Is dusty-tuned faster than zix?
zix is ahead of dusty-tuned on 7 of the 10 tests they both run, and behind on 3. Their composite scores are not on one scale: dusty-tuned is ranked among web frameworks and zix among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Is dusty-tuned faster than libxev?
libxev is ahead of dusty-tuned on 5 of the 5 tests they both run. Their composite scores are not on one scale: dusty-tuned is ranked among web frameworks and libxev among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Is dusty faster than zix?
zix is ahead of dusty on 16 of the 18 tests they both run, and behind on 2. Their composite scores are not on one scale: dusty is ranked among web frameworks and zix among HTTP engines, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.
Which Zig framework is fastest overall?
Among the Zig web frameworks, dusty-tuned holds the highest HTTP/1.1 composite, at 7638; among the Zig HTTP engines, zix holds the highest HTTP/1.1 composite, at 4745; among the experimental Zig frameworks, nilo holds the highest HTTP/1.1 composite, at 6333. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every Zig entry
Results updated · Zig composite ranking · Compare across languages · Other languages · Open the leaderboard