Ruby web framework benchmarks: performance comparison
The fastest Ruby web framework in HttpArena is h2o-mruby, with a composite of 3350 on HTTP/1.1 — 29 of 93 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry.
Compare any two Ruby entries profile by profile →
Every Ruby 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 Ruby narrows the same field to this language. Both link through to the board view they were taken in. How the score works.
Composite scores compare directly across every row. 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
| Framework | Type | Composite | Rank overall | Rank among Ruby |
|---|---|---|---|---|
| h2o-mruby | Flagship tuned | 3350 | 29 of 93 | 1 of 6 |
| roda | Flagship | 1305 | 57 of 71 | 1 of 5 |
| rage | Flagship | 1257 | 59 of 71 | 2 of 5 |
| sinatra | Flagship | 1148 | 61 of 71 | 3 of 5 |
| rack-iodine | Engine | 1042 | 25 of 26 | 1 of 2 |
| rack-falcon | Engine | 783 | 26 of 26 | 2 of 2 |
| rails | Flagship | 640 | 66 of 71 | 4 of 5 |
| hanami | Flagship | 626 | 67 of 71 | 5 of 5 |
HTTP/2
| Framework | Type | Composite | Rank overall | Rank among Ruby |
|---|---|---|---|---|
| h2o-mruby | Flagship tuned | 890 | 13 of 28 | — |
HTTP/3
| Framework | Type | Composite | Rank overall | Rank among Ruby |
|---|---|---|---|---|
| h2o-mruby | Flagship tuned | 1713 | 2 of 11 | — |
Questions
What is the fastest Ruby web framework?
h2o-mruby leads the Ruby entries in HttpArena with a composite score of 3350 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, h2o-mruby ranks 29 of 93 in its own league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.
What is the fastest Ruby HTTP/2 server?
h2o-mruby, with a composite of 890 on HTTP/2 and 13 of 28 against all languages in its league.
What is the fastest Ruby HTTP/3 server?
h2o-mruby, with a composite of 1713 on HTTP/3 and 2 of 11 against all languages in its league.
How many Ruby web frameworks are benchmarked?
8 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 quickest Ruby entry, h2o-mruby, places 29 of 93 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 8 entries.
Every Ruby entry
Other languages
C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Haskell · Java · JS · Julia · Kotlin · Lua · Luau · Perl · PHP · Python · Rust · Scala · Swift · TS · Zig
Results updated · Alpha Round · Compare two Ruby entries · All languages · Open the leaderboard