Thursday, December 06, 2007

JRuby performance: impressive improvements

Tim Bray pointed me to The Great Ruby Shootout, where Antonio Cangiano does an incredibly detailed analysis of the relative performance of the various popular Ruby runtimes out there.

There is a lot to look at, and I recommend you take a gander, but I wanted to highlight this paragraph:
JRuby is truly impressive, being the only implementation that’s able to pass all the tests without raising errors or timing out. Not only that, but in my previous benchmark, JRuby was several times slower than 1.8.5, whereas now it’s faster than the main Ruby interpreter. There have been huge improvements going on over the last few months. Really, just compare the times in the old table with the ones in the new table: unbelievable progress. JRuby is the only one, aside from 1.8.6, which is able to run Rails in production. I wouldn’t be surprised if JRuby turned out to be, on average, just as fast as Ruby 1.9, in a year or so.
That's some pretty impressive news. Kudos to Charlie, Thomas and the entire JRuby community!

1 comment:

Charles Oliver Nutter said...

Thanks David! And this isn't even the half of it...Antonio's runs are very short, not allowing for JVM warmup time. Even worse, Ruby 1.9 is optimized specifically for these benchmarks. So the truth is that JRuby's already catching up with Ruby 1.9, and passing it on more benchmarks every week. Happy times!