HttpArena

Scala web framework benchmarks: performance comparison

The fastest Scala web framework in HttpArena is http4s, with a composite of 764 on HTTP/1.1 — 78 of 88 against every language in its league. Measured over Alpha Round, every entry on the same machine. The leading experimental Scala framework is Sharaf, 29 of 32 in its own league.

Compare any two Scala entries profile by profile →

Every Scala 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 Scala 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

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Scala
http4sFlagship76478 of 88—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Scala
SharafExperimental148829 of 32—

Questions

What is the fastest Scala web framework?

http4s leads the Scala web frameworks in HttpArena with a composite score of 764 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, http4s ranks 78 of 88 in its league.

What is the fastest experimental Scala framework?

Sharaf leads the experimental Scala frameworks in HttpArena with a composite score of 1488 on HTTP/1.1, measured over Alpha Round. Against every language, Sharaf ranks 29 of 32 in its league.

Why are Scala entries ranked in separate leagues?

HttpArena ranks web frameworks and experimental frameworks 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 Scala head-to-head comparison, which lines up every test both of them ran.

How many Scala web frameworks are benchmarked?

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

Is Scala fast for web servers?

The leading Scala web framework, http4s, places 78 of 88 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Scala at its best rather than for Scala in general. The tables below show the spread across all 2 entries.

Every Scala 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 · Sober · Swift · TS · V · Valk · Zig

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