OCaml web framework benchmarks: performance comparison
The fastest OCaml web framework in HttpArena is araara, with a composite of 5211 on HTTP/1.1 — 13 of 85 against every language in its league. Measured over Alpha Round, every entry on the same machine.
Every OCaml 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 OCaml 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
Frameworks
HTTP/2
Frameworks
gRPC
Frameworks
WebSocket
Frameworks
Questions
What is the fastest OCaml web framework?
araara leads the OCaml web frameworks in HttpArena with a composite score of 5211 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, araara ranks 13 of 85 in its league.
What is the fastest OCaml HTTP/2 server?
araara, with a composite of 3268 on HTTP/2 and 2 of 31 against all languages in its league.
What is the fastest OCaml gRPC server?
araara, with a composite of 1935 on gRPC and 2 of 10 against all languages in its league.
What is the fastest OCaml WebSocket server?
araara, with a composite of 1873 on WebSocket and 12 of 30 against all languages in its league.
How many OCaml web frameworks are benchmarked?
1 OCaml entry is measured, covering HTTP/1.1, HTTP/2, gRPC, WebSocket. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.
Is OCaml fast for web servers?
The leading OCaml web framework, araara, places 13 of 85 on HTTP/1.1 across every language in its league, so that placing is the honest answer for OCaml at its best rather than for OCaml in general. The tables below show the spread across all 1 entry.
Every OCaml entry
Other languages
C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Mojo · Perl · PHP · Python · Ruby · Rust · Scala · Sober · Swift · TS · V · Valk · Zig
Results updated · Alpha Round · All languages · Open the leaderboard