Zig web framework comparison: any two, head to head
swerver is quicker than nilo on 8 of the 11 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 7632 and 6810.
Pick any two of the 6 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. What each profile measures.
| Profile | Conns | swerver req/sec | nilo req/sec | Delta | swerver p99 | nilo p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 3,668,682 | 2,957,435 | +24% | 2.17ms | 1.58ms |
| Pipelined | 4,096 | 23,068,272 | 8,103,580 | +185% | 3.67ms | 8.35ms |
| Short-lived | 4,096 | 2,629,113 | 2,303,617 | +14% | 3.18ms | 10.40ms |
| Async Delay | 32,000 | 1,710,592 | 1,956,056 | -13% | 21.20ms | 29.10ms |
| Latency-10K | 1,024 | 9,974 | 9,983 | -0% | 102.0us | 106.0us |
| Latency-1M | 1,024 | 997,842 | 997,873 | -0% | 175.0us | 201.0us |
| JSON Comp | 4,096 | 421,012 | 270,152 | +56% | 27.70ms | 148.60ms |
| JSON Comp | 16,384 | 414,281 | 268,625 | +54% | 74.90ms | 397.90ms |
| JSON TLS | 4,096 | 1,510,149 | 1,333,036 | +13% | 55.48ms | 65.00ms |
| 8Gbit | 512 | 49,355 | 49,160 | +0% | 125.0us | 150.0us |
| Async DB | 1,024 | 374,347 | 57,285 | +553% | 13.00ms | 77.60ms |
Common comparisons
swerver vs nilo · swerver vs zix · swerver vs dusty · nilo vs zix · nilo vs dusty · zix vs dusty
Questions
Is swerver faster than nilo?
swerver is quicker than nilo on 8 of the 11 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 7632 and 6810. Both run on the same machine, in the same round, against the same profiles.
Is swerver faster than zix?
zix is quicker than swerver on 23 of the 25 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 7632 and 4839. Both run on the same machine, in the same round, against the same profiles.
Is swerver faster than dusty?
swerver is quicker than dusty on 6 of the 9 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 7632 and 4077. Both run on the same machine, in the same round, against the same profiles.
Is nilo faster than zix?
zix is quicker than nilo on 15 of the 17 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 6810 and 4839. Both run on the same machine, in the same round, against the same profiles.
Which Zig framework is fastest overall?
swerver holds the highest HTTP/1.1 composite of the Zig entries, at 7632. 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