Re: Ruby Perofrmance

On Wed, Nov 3, 2010 at 8:43 PM, Peter Lane <peter.c.r.lane
googlemail.com>wrote:

If you have a program that takes a while to run, I think jruby is worth
trying. I often find small benchmarks show ruby 1.9 and jruby fairly
close, but anything more substantial and I get a consistent 2.5-3 times
speed up using jruby - these speedups are for fairly intensive AI
algorithms, like k-means clustering.

Several of those tiny benchmark programs (namekuseijin provided URIs)
take “a while to run”.

The mandelbrot program took JRuby 1 hour 20 minutes.

The n-body program took JRuby 27 minutes.

For those tiny benchmark programs which don’t take a while to run,
looking at Ruby 1.9 JRuby for more than one data point can be
interesting -

http://shootout.alioth.debian.org/u64/program.php?test=revcomp&lang=jruby&id=2

http://shootout.alioth.debian.org/u64/program.php?test=revcomp&lang=yarv&id=2