From: Chad Perrin Date: 2007-09-21T09:13:29+09:00 Subject: Re: How fast does your Ruby run? On Fri, Sep 21, 2007 at 08:15:22AM +0900, 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. > > (I had to take out RUBY_PATCHLEVEL, as that's not defined, but I suspect > I could have put a begin/rescue/end in around and STILL have eaten your > lunch. LOLOLOLOL FreeBSD 6.2-RELEASE on a Pentium M/Centrino 1.7GHz Thinkpad R52: > ruby calculate.rb 55 Ruby 1.8.6 patch 0 on i386-freebsd6 It took 16.125757 seconds to run. 62012 iterations per second. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Amazon.com interview candidate: "When C++ is your hammer, everything starts to look like your thumb."