From: Roger Pack Date: 2007-10-18T04:24:17+09:00 Subject: Re: Speed issue on Windows So my question is...why is ruby so slow on win32? I don't think it is just file I/O. And is there an answer? A better compiler? Thanks! Joel VanderWerf wrote: > Wilson Bilkovich wrote: >> Try running the built-in sample "cal.rb" with ruby -rprofile. >> I don't have two identical boxes right next to each other right now, but: >> WinXP SP2, dual Xeon 2.8GHz, 2GB of RAM: 5.031 seconds. >> Ubuntu 5.10, single P4 3.0GHz, 1GB of RAM: 2.110 seconds. >> >> Obviously the hardware isn't the same, but they should be much, much >> closer than that. >> cal.rb is a good choice (in my opinion) because it creates and >> compares a very large number of Rational and Fixnum objects. > > 4.94 sec WinXP SP2, single Pentium M, 1.7GHz, 512MB > 1-click installer > > 2.32 sec Ubuntu 5.10, single Pentium M, 1.7GHz, 512MB > built with default build options > > I took the best run out of 10 or so on each platform. Not building the > windows version with architecture specific options might account for > some of the difference. -- Posted via http://www.ruby-forum.com/.