HttpArena
Frameworks

C web framework benchmarks: performance comparison

The fastest C HTTP engine in HttpArena is apex-tuned, with a composite of 6420 on HTTP/1.1 — 5 of 46 against every language in its league. Measured over Alpha Round, every entry on the same machine. The leading experimental C framework is httparena-io_uring, 4 of 30 in its own league. The leading C reverse proxy or static-file server is nginx, 2 of 8 in its own league.

Compare any two C entries profile by profile →

Every C 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 C 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.

HTTP/1.1

Engines

EngineTypeCompositeRank in its leagueRank among C
apex-tunedEngine64205 of 461 of 3
mongooseEngine580010 of 462 of 3
libreactorngEngine373420 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among C
httparena-io_uringExperimental73354 of 301 of 2
cwebExperimental438019 of 302 of 2

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
nginxInfrastructure37172 of 81 of 4
h2oInfrastructure32724 of 82 of 4
varnishInfrastructure9015 of 83 of 4
Vinyl CacheInfrastructure6267 of 84 of 4

HTTP/2

Engines

EngineTypeCompositeRank in its leagueRank among C
apex-tunedEngine28551 of 17—

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
h2oInfrastructure12362 of 71 of 3
nginxInfrastructure7473 of 72 of 3
varnishInfrastructure1125 of 73 of 3

HTTP/3

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
nginxInfrastructure10123 of 5—

WebSocket

Engines

EngineTypeCompositeRank in its leagueRank among C
mongooseEngine27593 of 201 of 2
ringzero-wsEngine19886 of 202 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among C
cwebExperimental28726 of 23—

Questions

What is the fastest C HTTP engine?

apex-tuned leads the C HTTP engines in HttpArena with a composite score of 6420 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, apex-tuned ranks 5 of 46 in its league.

What is the fastest experimental C framework?

httparena-io_uring leads the experimental C frameworks in HttpArena with a composite score of 7335 on HTTP/1.1, measured over Alpha Round. Against every language, httparena-io_uring ranks 4 of 30 in its league.

What is the fastest C reverse proxy or static-file server?

nginx leads the C reverse proxies and static-file servers in HttpArena with a composite score of 3717 on HTTP/1.1, measured over Alpha Round. Against every language, nginx ranks 2 of 8 in its league.

Why are C entries ranked in separate leagues?

HttpArena ranks HTTP engines, experimental frameworks, and reverse proxies and static-file servers apart. Each league is normalized against its own leader, and the leagues do not all count the same profiles. 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 C head-to-head comparison, which lines up every test both of them ran.

What is the fastest C HTTP/2 server?

Among HTTP engines, apex-tuned (composite 2855, 1 of 17 in that league); among reverse proxies and static-file servers, h2o (composite 1236, 2 of 7 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest C HTTP/3 server?

nginx, with a composite of 1012 on HTTP/3 and 3 of 5 against all languages in its league.

What is the fastest C WebSocket server?

Among HTTP engines, mongoose (composite 2759, 3 of 20 in that league); among experimental frameworks, cweb (composite 2872, 6 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

How many C web frameworks are benchmarked?

10 C entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, WebSocket. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.

Is C fast for web servers?

The leading C HTTP engine, apex-tuned, places 5 of 46 on HTTP/1.1 across every language in its league, so that placing is the honest answer for C at its best rather than for C in general. The tables below show the spread across all 10 entries.

Every C entry

Other languages

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

Results updated · Alpha Round · Compare two C entries · All languages · Open the leaderboard