Ruby web framework benchmarks: performance comparison
The fastest Ruby web framework in HttpArena is h2o-mruby, with a composite of 2293 on HTTP/1.1 — 48 of 114 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry. The leading Ruby HTTP engine is rack-puma, 41 of 46 in its own league.
Compare any two Ruby entries profile by profile →
Every Ruby 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 Ruby 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
| Framework | Type | Composite | Rank in its league | Rank among Ruby |
|---|---|---|---|---|
| h2o-mruby | Flagship tuned | 2293 | 48 of 114 | 1 of 6 |
| rage | Flagship | 938 | 73 of 88 | 1 of 5 |
| roda | Flagship | 798 | 77 of 88 | 2 of 5 |
| sinatra | Flagship | 713 | 79 of 88 | 3 of 5 |
| hanami | Flagship | 425 | 82 of 88 | 4 of 5 |
| rails | Flagship | 394 | 83 of 88 | 5 of 5 |
Engines
| Engine | Type | Composite | Rank in its league | Rank among Ruby |
|---|---|---|---|---|
| rack-puma | Engine | 868 | 41 of 46 | 1 of 3 |
| rack-falcon | Engine | 722 | 43 of 46 | 2 of 3 |
| rack-iodine | Engine | 431 | 45 of 46 | 3 of 3 |
HTTP/2
Frameworks
HTTP/3
Frameworks
Questions
What is the fastest Ruby web framework?
h2o-mruby leads the Ruby web frameworks in HttpArena with a composite score of 2293 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, h2o-mruby ranks 48 of 114 in its league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.
What is the fastest Ruby HTTP engine?
rack-puma leads the Ruby HTTP engines in HttpArena with a composite score of 868 on HTTP/1.1, measured over Alpha Round. Against every language, rack-puma ranks 41 of 46 in its league.
Why are Ruby entries ranked in separate leagues?
HttpArena ranks web frameworks and HTTP engines 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 Ruby head-to-head comparison, which lines up every test both of them ran.
What is the fastest Ruby HTTP/2 server?
h2o-mruby, with a composite of 684 on HTTP/2 and 24 of 45 against all languages in its league.
What is the fastest Ruby HTTP/3 server?
h2o-mruby, with a composite of 966 on HTTP/3 and 7 of 22 against all languages in its league.
How many Ruby web frameworks are benchmarked?
9 Ruby entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.
Is Ruby fast for web servers?
The leading Ruby web framework, h2o-mruby, places 48 of 114 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Ruby at its best rather than for Ruby in general. The tables below show the spread across all 9 entries.
Every Ruby 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 · Rust · Scala · Sober · Swift · TS · V · Valk · Zig
Results updated · Alpha Round · Compare two Ruby entries · All languages · Open the leaderboard