Prashant's Perceptions

Prashant Srinivasan's Weblog


« DTrace support for... | Main | How to install Mongr... »
Sunday May 11, 2008

Ruby 1.9 very first impression


Program: ruby -e 'require "benchmark"; p Benchmark.realtime { a=0;1000000.times {a = a + 1}; p a} '

On a machine running OpenSolaris on AMD Opteron. The timings are:

x64 Ruby 1.8.6: 1.31seconds
x64 Ruby 1.9: 0.198 seconds

I'll want to run programs that aren't as simplistic, of course, but still, wow! that's an 84% improvement for this loopy.

Comments:

We did some benchmarks for Ruby/JRuby last year.

(although they were written in Japanese )
PLS. see

http://blogs.sun.com/kawaiti/entry/jruby_1_1b1_vs_ruby

http://blogs.sun.com/shita/entry/kri_ruby1_9_0_vs

cheers,

Posted by shita on May 11, 2008 at 11:31 PM PDT #

Post a Comment:
Comments are closed for this entry.

Today's Page Hits: 6