From: Charles Oliver Nutter Date: 2012-02-15T18:04:58+09:00 Subject: Re: Basic Ruby performance And your other bench. Again, pretty meaningless. MacRuby does especially poorly here. system ~/projects/jruby $ cat other_bench.rb s = "This is a test string" re = Regexp.new( / test / ) 5.times { puts Benchmark.measure { for a in 0..1E7 re.match( s ) end } } system ~/projects/jruby $ jruby -rbenchmark other_bench.rb 3.088000 0.000000 3.088000 ( 3.088000) 2.359000 0.000000 2.359000 ( 2.359000) 2.412000 0.000000 2.412000 ( 2.412000) system ~/projects/jruby $ rvm 1.9.3 do ruby -rbenchmark other_bench.rb 12.880000 0.010000 12.890000 ( 12.894050) 12.840000 0.000000 12.840000 ( 12.845842) 12.800000 0.010000 12.810000 ( 12.804021) system ~/projects/jruby $ macruby -rbenchmark other_bench.rb 65.710000 2.300000 68.010000 ( 56.906346) ^C system ~/projects/jruby $ ../rubinius/bin/rbx -rbenchmark other_bench.rb 4.682926 0.003170 4.686096 ( 4.686355) 4.719460 0.002050 4.721510 ( 4.721482) 4.181200 0.001947 4.183147 ( 4.183126) - Charlie