[rspec-users] Slow test suite with Ruby 1.9.2 and Rspec 2.5
dchelimsky at gmail.com
Mon Apr 25 09:58:21 EDT 2011
Great work! Thanks for following up.
On Apr 25, 2011, at 8:19 AM, Alisson Sales wrote:
> I've found the problem. The gem meta_where
> (https://github.com/ernie/meta_where) is doing something wrong in ruby
> 1.9.2, just removing it from my Gemfile and my suite is running fast
> again(6 seconds).
> Thank you guys, I'll open a issue on the meta_where project.
> On Sun, Apr 24, 2011 at 8:37 PM, Rodrigo Rosenfeld Rosas
> <lbocseg at yahoo.com.br> wrote:
>> Em 24-04-2011 19:22, Alisson Sales escreveu:
>>> On Sun, Apr 24, 2011 at 6:23 PM, Sidu Ponnappa<ckponnappa at gmail.com>
>>>> Are you perhaps seeing http://is.gd/6aINHC ? We've moved several Rails
>>>> projects to 1.9.2 over the last few months and we've found our builds
>>>> running slower on all (we use RSpec too).
>>> I'm not sure if the problem is the startup time. Does the startup time
>>> affects results of rspec --profile?
>>> See the results of $ rspec spec/models/user_spec.rb -p here
>> Yes, I agree with you. It probably is some issue related to some gem that
>> behaves differently in Ruby 1.8 and 1.9...
>> That is why I miss a real good profiler tool, like that of Google Chrome for
>> trying out ruby-prof or Rubinius:
>> You could try the Graphic profile of ruby-prof and it might help you
>> identifying which part is slower on each implementation so that you could
>> identify what is the culprit gem, if that is the case.
>> For speeding up your startup time you can try spork. It helped a lot for me.
>> Good luck,
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users