Zig web framework benchmarks: performance comparison
The fastest Zig web framework in HttpArena is dusty-tuned, with a composite of 7638 on HTTP/1.1 — 1 of 109 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry. The leading Zig HTTP engine is zix, 14 of 46 in its own league. The leading experimental Zig framework is nilo, 7 of 30 in its own league.
Compare any two Zig entries profile by profile →
Every Zig entry in the benchmark, compared on the composite score of each family, one table per league. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 1,000, and scales the sum by the entry's completeness factor. Frameworks, engines, experimental entries and infrastructure are separate leagues: each is normalized against its own leader, and they do not all count the same profiles, so a composite compares with the others in its table and with nothing outside it. Rank in its league is the entry's place across all languages; rank among Zig narrows the same field to this language. Both link through to the board view they were taken in. How the score works.
To set two entries from different leagues against each other, compare them head to head: that table lines up every test both of them ran.
Composite scores compare directly across every row of a table. Ranks do not always share a field: a tuned entry has no place in the standard-only ranking, so its rank is taken from the field that includes tuned entries and counts more of them.
HTTP/1.1
Frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| dusty-tuned | Emerging tuned | 7638 | 1 of 109 | 1 of 2 |
| dusty | Emerging | 6948 | 2 of 85 | 2 of 2 |
Engines
| Engine | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| zix | Engine | 4745 | 14 of 46 | 1 of 3 |
| libxev | Engine | 3819 | 19 of 46 | 2 of 3 |
| zeemo | Engine | 3687 | 22 of 46 | 3 of 3 |
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| nilo | Experimental | 6333 | 7 of 30 | 1 of 4 |
| swerver | Experimental tuned | 6150 | 8 of 32 | 2 of 5 |
| anole | Experimental | 6089 | 8 of 30 | 2 of 4 |
| netcode-http | Experimental | 3829 | 21 of 30 | 3 of 4 |
| uWebZockets | Experimental | 3747 | 23 of 30 | 4 of 4 |
HTTP/2
Engines
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| swerver | Experimental tuned | 2742 | 7 of 18 | 1 of 4 |
| anole | Experimental | 2194 | 6 of 16 | 1 of 3 |
| nilo | Experimental | 1742 | 9 of 16 | 2 of 3 |
| uWebZockets | Experimental | 453 | 15 of 16 | 3 of 3 |
HTTP/3
Engines
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| anole | Experimental | 1118 | 5 of 10 | 1 of 2 |
| swerver | Experimental tuned | 548 | 8 of 12 | 2 of 3 |
| uWebZockets | Experimental | 0 | 10 of 10 | 2 of 2 |
Gateway
Experimental frameworks
gRPC
Engines
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| anole | Experimental | 1699 | 2 of 7 | 1 of 2 |
| swerver | Experimental tuned | 1483 | 5 of 9 | 2 of 3 |
| nilo | Experimental | 1326 | 4 of 7 | 2 of 2 |
WebSocket
Frameworks
Engines
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among Zig |
|---|---|---|---|---|
| netcode-http | Experimental | 2976 | 2 of 23 | 1 of 4 |
| anole | Experimental | 2524 | 10 of 23 | 2 of 4 |
| nilo | Experimental | 2494 | 11 of 23 | 3 of 4 |
| uWebZockets | Experimental | 1993 | 16 of 23 | 4 of 4 |
Questions
What is the fastest Zig web framework?
dusty-tuned leads the Zig web frameworks in HttpArena with a composite score of 7638 on HTTP/1.1, measured over Alpha Round. The composite sums a normalized score across the profiles of a family, where the leader of each profile scores 1,000. Against every language, dusty-tuned ranks 1 of 109 in its league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.
What is the fastest Zig HTTP engine?
zix leads the Zig HTTP engines in HttpArena with a composite score of 4745 on HTTP/1.1, measured over Alpha Round. Against every language, zix ranks 14 of 46 in its league.
What is the fastest experimental Zig framework?
nilo leads the experimental Zig frameworks in HttpArena with a composite score of 6333 on HTTP/1.1, measured over Alpha Round. Against every language, nilo ranks 7 of 30 in its league.
Why are Zig entries ranked in separate leagues?
HttpArena ranks web frameworks, HTTP engines, and experimental frameworks apart. Each league is normalized against its own leader, and the leagues do not all count the same profiles - engines are not scored on JSON Compressed, for one. A composite from one league is therefore not on the same scale as a composite from another, and the higher number across two leagues is not the faster server. To set two entries from different leagues against each other, use the Zig head-to-head comparison, which lines up every test both of them ran.
What is the fastest Zig HTTP/2 server?
Among HTTP engines, zix (composite 2750, 3 of 17 in that league); among experimental frameworks, swerver (composite 2742, 7 of 18 in that league). The leagues are scored separately, so those composites are not on one scale.
What is the fastest Zig HTTP/3 server?
Among HTTP engines, zix (composite 1681, 2 of 8 in that league); among experimental frameworks, anole (composite 1118, 5 of 10 in that league). The leagues are scored separately, so those composites are not on one scale.
What is the fastest Zig Gateway server?
anole, with a composite of 2145 on Gateway and 2 of 2 against all languages in its league.
What is the fastest Zig gRPC server?
Among HTTP engines, zix (composite 1910, 2 of 4 in that league); among experimental frameworks, anole (composite 1699, 2 of 7 in that league). The leagues are scored separately, so those composites are not on one scale.
What is the fastest Zig WebSocket server?
Among web frameworks, dusty (composite 2935, 1 of 30 in that league); among HTTP engines, zix (composite 2958, 1 of 20 in that league); among experimental frameworks, netcode-http (composite 2976, 2 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.
How many Zig web frameworks are benchmarked?
10 Zig entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, Gateway, gRPC, WebSocket. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.
Is Zig fast for web servers?
The leading Zig web framework, dusty-tuned, places 1 of 109 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Zig at its best rather than for Zig in general. The tables below show the spread across all 10 entries.
Every Zig entry
Other languages
C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Mojo · OCaml · Perl · PHP · Python · Ruby · Rust · Scala · Sober · Swift · TS · V · Valk
Results updated · Alpha Round · Compare two Zig entries · All languages · Open the leaderboard