Todd Burch wrote:
> SpringFlowers AutumnMoon wrote:
>> How fast does your Ruby run?
>>
>> I got 53648 iterations per second running the following program,
>> on an Intel 3.2 GHz HT, Win XP machine:
>>
>> --------
>>
>> C:\> ruby calculate.rb
>> 55
>>
>> Ruby 1.8.6 patch 0 on i386-mswin32
>> It took 18.64 seconds to run. 53648 iterations per second.
>>
> 
> I just ate your lunch.  MacPro 3ghz dual duo 2gb ram.
> 
> Ruby 1.8.2 on universal-darwin8.0
> It took 6.383342 seconds to run. 156657 iterations per second.

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.

- Charlie