Ruby web framework comparison: any two, head to head
h2o-mruby is quicker than roda on 6 of the 11 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 3350 and 1305.
Pick any two of the 8 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. What each profile measures.
| Profile | Conns | h2o-mruby req/sec | roda req/sec | Delta | h2o-mruby p99 | roda p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 1,531,028 | 85,318 | +1694% | 989us | 199.00ms |
| Pipelined | 4,096 | 2,511,269 | 701,920 | +258% | 9.45ms | 146.80ms |
| Short-lived | 4,096 | 578,704 | 39,431 | +1368% | 55.30ms | 219.20ms |
| Async Delay | 32,000 | 106,191 | 23,977 | +343% | 10.00ms | 2.33s |
| Latency-10K | 1,024 | 9,982 | 9,982 | +0% | 140.0us | 700.0us |
| Latency-1M | 1,024 | 997,405 | 376,299 | +165% | 373.0us | 13512704.0us |
| Latency-500K/8 | 1,024 | 248,623 | 62,059 | +301% | 9957376.0us | 17342464.0us |
| JSON Comp | 4,096 | 75,742 | 144,373 | -48% | 1.04s | 50.50ms |
| JSON Comp | 16,384 | 73,948 | 142,820 | -48% | 3.66s | 173.70ms |
| JSON TLS | 4,096 | 140,687 | 229,790 | -39% | 35.43ms | 192.40ms |
| 8Gbit | 512 | 49,204 | 49,362 | -0% | 172.0us | 1216.0us |
Common comparisons
h2o-mruby vs roda · h2o-mruby vs rage · h2o-mruby vs sinatra · roda vs rage · roda vs sinatra · rage vs sinatra
Questions
Is h2o-mruby faster than roda?
h2o-mruby is quicker than roda on 6 of the 11 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 3350 and 1305. Both run on the same machine, in the same round, against the same profiles.
Is h2o-mruby faster than rage?
h2o-mruby is quicker than rage on 6 of the 9 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 3350 and 1257. Both run on the same machine, in the same round, against the same profiles.
Is h2o-mruby faster than sinatra?
h2o-mruby is quicker than sinatra on 6 of the 11 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 3350 and 1148. Both run on the same machine, in the same round, against the same profiles.
Is roda faster than rage?
rage is quicker than roda on 8 of the 10 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 1305 and 1257. Both run on the same machine, in the same round, against the same profiles.
Which Ruby framework is fastest overall?
h2o-mruby holds the highest HTTP/1.1 composite of the Ruby entries, at 3350. 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