If I am using Ruby on Rails, should I install MRI/YARV Ruby or JRuby? Which is faster?
Recent benchmarks put JRuby in the lead, followed by MagLev, Rubinius, then MRI.
Benchmarking is tricky. The Ruby Benchmark Suite is what most use to benchmark Ruby. If you remove any benchmarks that fail across any implementation, you get the following graph.
Notice I used the geometric mean. This is a better indicator of average performance as it normalizes outliers and machine specs.
The best benchmark you can run will be specific to your app. If you are looking for overall performance, you'll likely want to use real threads, so Rubinius or JRuby are your only real choices.
Also, each implementation is fast at different things. MRI is very fast at starting up, so it's good for scripts. For longer-running applications (like a web application) Rubinius or JRuby will generally perform better than MRI.