Zig web framework benchmarks
The fastest Zig HTTP server in HttpArena is swerver (an HTTP engine), with a composite of 356 on HTTP/1.1 — 4 of 34 against every language in its league. Measured over Alpha Round, every entry on the same machine.
Every Zig entry in the benchmark, compared on the composite score of each family. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 100. Rank overall is the entry's place in its own league 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.
HTTP/1.1
| Framework | Type | Composite | Rank overall | Rank among Zig |
|---|---|---|---|---|
| swerver | Engine | 356 | 4 of 34 | 1 of 3 |
| zix | Engine | 200 | 8 of 34 | 2 of 3 |
| zeemo | Engine | 192 | 12 of 34 | 3 of 3 |
HTTP/2
| Framework | Type | Composite | Rank overall | Rank among Zig |
|---|---|---|---|---|
| swerver | Engine | 216 | 3 of 6 | — |
HTTP/3
| Framework | Type | Composite | Rank overall | Rank among Zig |
|---|---|---|---|---|
| zix | Engine | 200 | 1 of 3 | 1 of 2 |
| swerver | Engine | 75 | 3 of 3 | 2 of 2 |
gRPC
| Framework | Type | Composite | Rank overall | Rank among Zig |
|---|---|---|---|---|
| zix | Engine | 397 | 1 of 3 | — |
WebSocket
| Framework | Type | Composite | Rank overall | Rank among Zig |
|---|---|---|---|---|
| zix | Engine | 293 | 1 of 9 | — |
Questions
What is the fastest Zig HTTP server?
swerver, an HTTP engine, leads the Zig entries in HttpArena with a composite score of 356 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 100. Against every language, swerver ranks 4 of 34 in its own league.
What is the fastest Zig HTTP/2 server?
swerver, with a composite of 216 on HTTP/2 and 3 of 6 against all languages in its league.
What is the fastest Zig HTTP/3 server?
zix, with a composite of 200 on HTTP/3 and 1 of 3 against all languages in its league.
What is the fastest Zig gRPC server?
zix, with a composite of 397 on gRPC and 1 of 3 against all languages in its league.
What is the fastest Zig WebSocket server?
zix, with a composite of 293 on WebSocket and 1 of 9 against all languages in its league.
How many Zig web frameworks are benchmarked?
3 Zig entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, 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 quickest Zig entry, swerver, places 4 of 34 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 3 entries.
Every Zig entry
Alpha Round · All languages · Open the leaderboard