From: Robert McGovern Date: 2007-10-29T08:31:42+09:00 Subject: Re: How fast does your Ruby run? > > Hand built 1.8.6 on 2ghz MacBook, 1gig ram: > > > > RubyMate r6354 running Ruby r1.8.6 (/usr/local/bin/ruby) > > >>> test.rb > > > > 55 > > > > Ruby 1.8.6 patch 0 on i686-darwin8.10.1 > > It took 9.495808 seconds to run. 105309 iterations persecond. > > Followup, with the newly released 1.8.6p100 > > robert-mcgoverns-computer:~/Documents/Programming robertmcgovern$ ruby test.rb > 55 > > Ruby 1.8.6 patch 110 on i686-darwin8.10.1 > It took 9.955669 seconds to run. 100445 iterations persecond. > > Slightly slower, running on battery but I don't think it makes any difference. A followup on myself now that Leopard is out and installed on my MacBook. On AC, with Normal performance selected the results are: Ruby 1.8.6 patch 36 on universal-darwin9.0 It took 12.038167 seconds to run. 83069 iterations persecond. On AC, with Better Performance selected: Ruby 1.8.6 patch 36 on universal-darwin9.0 It took 12.112343 seconds to run. 82560 iterations persecond. On Battery, Better Battery Life: Ruby 1.8.6 patch 36 on universal-darwin9.0 It took 12.095676 seconds to run. 82674 iterations persecond. On Battery, Better Performance: Ruby 1.8.6 patch 36 on universal-darwin9.0 It took 12.10441 seconds to run. 82614 iterations persecond. So roughly 3 seconds slower overall for Leopards own 1.8.6 vs hand built 1.8.6 on Tiger. Need to build my own 1.8.6 on Leopard to see what that brings. Also no real difference between various settings (wasn't sure if any noticeable CPU throttling would occur).