From: brabuhr@... Date: 2009-09-03T21:18:32+09:00 Subject: Re: Comparison Ruby, Python, Php, Groovy ecc. On Thu, Sep 3, 2009 at 1:11 AM, Charles Oliver Nutter wrote: > On Tue, Aug 25, 2009 at 5:18 PM, wrote: >> jruby 1.3.0 (ruby 1.8.6p287) (2009-06-03 5dc2e22) (OpenJDK Client VM >> 1.6.0_0) [i386-java] >>> jruby bench1.rb > /dev/null >> Ruby Elapsed 4.185 > > Pass --server for best performance. Additionally pass --fast to turn > on experimental optz. > >> jruby 1.3.0 (ruby 1.8.6p287) (2009-06-03 5dc2e22) (OpenJDK Client VM >> 1.6.0_0) [i386-java] >>> jruby -rubygems bench2.rb > /dev/null >> Ruby Elapsed 0.409 > > Ditto. CPU-intensive code will often be as much as 2x faster with --server. One of the machines I tested on only had the client vm, so I didn't include those numbers from the other machines either. However, --server and --fast on the other machines didn't make much of an impact on this short test: varying from a nice speed boost on some runs to slower on others (the test program did not do any pre-test warmup).