HttpArena
Comparisons

Ruby web framework comparison: any two, head to head

h2o-mruby is ahead of rage on 6 of the 9 tests they both run, and behind on 3. On the HTTP/1.1 composite h2o-mruby scores 3133 and rage 1423.

Pick any two of the 9 Ruby entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsh2o-mrubyrageDeltah2o-mruby p99rage p99
Requests per second
Baseline4,0961,531,028768,517+99%989us16.80ms
Pipelined4,0962,511,269938,847+167%9.45ms174.70ms
Short-lived4,096578,704243,593+138%55.30ms135.50ms
Async Delay32,000106,191598,146-82%10.00ms125.70ms
JSON Comp4,09675,742169,987-55%1.04s78.50ms
JSON Comp16,38473,948150,738-51%3.66s306.80ms
Fixed-rate profiles: score out of 100
Latency-10K1,02470.443.2+63%140us307us
Latency-1M1,02463.28.4+652%373us10.28s
Latency-500K/81,02412.02.3+422%9.96s16.34s

Common comparisons

h2o-mruby vs rage · h2o-mruby vs roda · h2o-mruby vs sinatra · rage vs roda · rage vs sinatra · roda vs sinatra

Questions

Is h2o-mruby faster than rage?

h2o-mruby is ahead of rage on 6 of the 9 tests they both run, and behind on 3. On the HTTP/1.1 composite h2o-mruby scores 3133 and rage 1423. Both run on the same machine, in the same round, against the same profiles.

Is h2o-mruby faster than roda?

h2o-mruby is ahead of roda on 8 of the 11 tests they both run, and behind on 3. On the HTTP/1.1 composite h2o-mruby scores 3133 and roda 1242. Both run on the same machine, in the same round, against the same profiles.

Is h2o-mruby faster than sinatra?

h2o-mruby is ahead of sinatra on 8 of the 11 tests they both run, and behind on 3. On the HTTP/1.1 composite h2o-mruby scores 3133 and sinatra 1102. Both run on the same machine, in the same round, against the same profiles.

Is rage faster than roda?

rage is ahead of roda on 8 of the 10 tests they both run, and behind on 2. On the HTTP/1.1 composite rage scores 1423 and roda 1242. Both run on the same machine, in the same round, against the same profiles.

Which Ruby framework is fastest overall?

Among the Ruby web frameworks, h2o-mruby holds the highest HTTP/1.1 composite, at 3133; among the Ruby HTTP engines, rack-puma holds the highest HTTP/1.1 composite, at 1079. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.

Every Ruby entry

Results updated · Ruby composite ranking · Compare across languages · Other languages · Open the leaderboard