On Mon, Sep 10, 2012 at 10:16 PM, jason marshall <[email protected]> wrote: > We have a Rails app running on Ruby 1.9.3, and a under Windows we're seeing > a 20x time penalty in our RSpec tests.
And the hardware is comparable? > I'm fairly new to Ruby, but not to performance analysis, so I've volunteered > to follow up on this problem. If I want to file/find a bug to associate > with this problem, what sort of data should I be gathering, and how? I have zero experience with Rails profiling, but maybe using the std lib profiler can give you a first data point. > Background/random data: > > We have 800+ tests, and on a good day they all run in a minute. Some do no > I/O (pure 'unit' test), most do light I/O (usually a couple create+reads to > MongoDB or a render partial). Only a few do any heavy lifting. > > I don't see any glaring hotspots. Most of the tests seem to take several > times longer to run. Dots just accumulate slower. Just to exclude an obvious issue: do you have an AV engine up and running on the Windows box? If yes, excluding some directories might help. Some engines then still slow down operation so completely switching off for the test might also be an option to determine whether it's AV. To exclude something else: is there concurrent activity that eats CPU and / or IO bandwidth? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
