From: Charles Oliver Nutter Date: 2007-10-28T03:58:14+09:00 Subject: Re: How fast does your Ruby run? Charles Oliver Nutter wrote: > MacBook Pro 2.1G. I tried both Ruby and JRuby. > > JRuby: > > Ruby 1.8.5 patch 3876 on java > It took 8.022 seconds to run. 124657 iterations per second. > > Ruby: > > Ruby 1.8.6 patch 0 on i686-darwin8.9.1 > It took 10.262067 seconds to run. 97446 iterations per second. Updated for current JRuby trunk: JRuby: Ruby 1.8.5 patch 3876 on java It took 7.237 seconds to run. 138178 iterations per second. If I make it run a bit longer, the disparity is greater: n = 10_000_000 JRuby: Ruby 1.8.5 patch 3876 on java It took 61.918 seconds to run. 161503 iterations per second. Ruby: Ruby 1.8.6 patch 0 on i686-darwin8.9.1 It took 107.181442 seconds to run. 93299 iterations per second. - Charlie