HttpArena

Zig web framework benchmarks: performance comparison

The fastest Zig web framework in HttpArena is dusty-tuned, with a composite of 6311 on HTTP/1.1 — 4 of 113 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, 15 of 46 in its own league. The leading experimental Zig framework is anole, 10 of 33 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

FrameworkTypeCompositeRank in its leagueRank among Zig
dusty-tunedEmerging tuned63114 of 1131 of 2
dustyEmerging59603 of 872 of 2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine385015 of 461 of 3
libxevEngine287619 of 462 of 3
zeemoEngine280322 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental479410 of 331 of 4
swerverExperimental tuned459511 of 352 of 5
niloExperimental456911 of 332 of 4
netcode-httpExperimental281823 of 333 of 4
uWebZocketsExperimental274524 of 334 of 4

HTTP/2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine27484 of 19—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
swerverExperimental tuned255610 of 211 of 4
anoleExperimental25409 of 191 of 3
niloExperimental158113 of 192 of 3
uWebZocketsExperimental43819 of 193 of 3

HTTP/3

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine16812 of 8—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental10237 of 121 of 2
swerverExperimental tuned50310 of 142 of 3
uWebZocketsExperimental012 of 122 of 2

Gateway

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental20933 of 4—

gRPC

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine19102 of 4—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental16424 of 91 of 2
swerverExperimental tuned14417 of 112 of 3
niloExperimental12896 of 92 of 2

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
dustyEmerging27263 of 31—

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine29581 of 20—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
netcode-httpExperimental29203 of 241 of 4
niloExperimental245411 of 242 of 4
anoleExperimental237513 of 243 of 4
uWebZocketsExperimental193917 of 244 of 4

Database

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
dusty-tunedEmerging tuned19332 of 221 of 2
dustyEmerging18092 of 172 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental3478 of 8—

Questions

What is the fastest Zig web framework?

dusty-tuned leads the Zig web frameworks in HttpArena with a composite score of 6311 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 4 of 113 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 3850 on HTTP/1.1, measured over Alpha Round. Against every language, zix ranks 15 of 46 in its league.

What is the fastest experimental Zig framework?

anole leads the experimental Zig frameworks in HttpArena with a composite score of 4794 on HTTP/1.1, measured over Alpha Round. Against every language, anole ranks 10 of 33 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 2748, 4 of 19 in that league); among experimental frameworks, swerver (composite 2556, 10 of 21 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 1023, 7 of 12 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 2093 on Gateway and 3 of 4 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 1642, 4 of 9 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 2726, 3 of 31 in that league); among HTTP engines, zix (composite 2958, 1 of 20 in that league); among experimental frameworks, netcode-http (composite 2920, 3 of 24 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Zig database-backed server?

Among web frameworks, dusty-tuned (composite 1933, 2 of 22 in that league); among experimental frameworks, anole (composite 347, 8 of 8 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, Database. 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 4 of 113 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

Assembly · 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