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 04:31 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

prashant

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today