HttpArena
Frameworks

C web framework benchmarks: performance comparison

The fastest C HTTP server in HttpArena is mongoose (an HTTP engine), with a composite of 5902 on HTTP/1.1 — 4 of 39 against every language in its league. Measured over Alpha Round, every entry on the same machine.

Compare any two C entries profile by profile →

Every C 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, and scales the sum by the entry's completeness factor. Rank overall is the entry's place in its own league 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.

HTTP/1.1

FrameworkTypeCompositeRank overallRank among C
mongooseEngine59024 of 391 of 3
nginxInfrastructure40772 of 61 of 4
libreactorngEngine377914 of 392 of 3
libiomaEngine377315 of 393 of 3
h2oInfrastructure37123 of 62 of 4
Vinyl CacheInfrastructure8294 of 63 of 4
varnishInfrastructure4396 of 64 of 4

HTTP/2

FrameworkTypeCompositeRank overallRank among C
h2oInfrastructure12362 of 51 of 3
nginxInfrastructure7473 of 52 of 3
varnishInfrastructure1104 of 53 of 3

HTTP/3

FrameworkTypeCompositeRank overallRank among C
nginxInfrastructure10462 of 3—

WebSocket

FrameworkTypeCompositeRank overallRank among C
mongooseEngine27592 of 181 of 2
ringzero-wsEngine19885 of 182 of 2

Questions

What is the fastest C HTTP server?

mongoose, an HTTP engine, leads the C entries in HttpArena with a composite score of 5902 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, mongoose ranks 4 of 39 in its own league.

What is the fastest C HTTP/2 server?

h2o, with a composite of 1236 on HTTP/2 and 2 of 5 against all languages in its league.

What is the fastest C HTTP/3 server?

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

What is the fastest C WebSocket server?

mongoose, with a composite of 2759 on WebSocket and 2 of 18 against all languages in its league.

How many C web frameworks are benchmarked?

8 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 quickest C entry, mongoose, places 4 of 39 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 8 entries.

Every C entry

Other languages

C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Perl · PHP · Python · Ruby · Rust · Scala · Swift · TS · V · Zig

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