[rspec-users] slow and high cpu in rails3?

jia jiazh3ng at gmail.com
Fri Jun 4 03:32:20 EDT 2010


Hi,

I noticed that compared with rails2.3 with rspec1.3, rails3 takes much
longer time for me to execute rspec and cucumber, and the cpu is
high(50%+).

It seems it takes most of the time for loading the environment; the
actual execution is fast. For example, to execute the following
scenarios, it takes about 10 seconds wall clock time. Is this normal?

4 scenarios (1 failed, 3 passed)
22 steps (1 failed, 21 passed)
0m1.388s


environment:
ruby 1.9.3dev (2010-06-03 trunk 28143) [i686-linux]
rspec-core-2.0.0.beta.10
rspec (2.0.0.beta.10, 2.0.0.beta.8)
rspec-core (2.0.0.beta.10, 2.0.0.beta.8)
rspec-expectations (2.0.0.beta.10, 2.0.0.beta.8)
rspec-mocks (2.0.0.beta.10, 2.0.0.beta.8)
rspec-rails (2.0.0.beta.10, 2.0.0.beta.8)
selenium-webdriver (0.0.20)
spork (0.8.3)
rails 3.0.0.0.beta3
autotest (4.2.10)
autotest-notification (2.2.1)
autotest-rails (4.1.0)
cucumber (0.7.3, 0.7.2)
cucumber-rails (0.3.1)


More information about the rspec-users mailing list