From: "M. Edward (Ed) Borasky" Date: 2008-01-28T13:02:28+09:00 Subject: Re: Ruby Script Under performance in CYGWIN environment ankit wrote: > Hi, > > I have written one ruby script to execute the regression testcases. > There are more than five thousand of testcases to be run daily. > > For Linux, the performance was ok and on expected line but on CYGWIN > shell, the script is taking a lot more time ( I would say almost > double of time) in running the same testcases as compared to similar > script written in perl. > > Is ruby under performance is related and specific to cygwin shell or > is ruby not meant at all to be run on windows and this is known > performance issue? > > I am using the following : CYGWIN_NT-5.1 and ruby 1.8.4 > > regards, > Ankit > > Download the Ruby source (1.8.6) and recompile it on Cygwin using the following CFLAGS export CFLAGS='-O3 -march=' For example, if you're running a Pentium 4, do export CFLAGS='-O3 -march=pentium4' That will give you at least a 10 percent improvement over the base Ruby 1.8.4 you have now.