Unfortunately I don't have a Rails project handy that builds on both 1.8 and 1.9, but here are the results for a pure Ruby project: https://gist.github.com/939981
As you can see, the build times are nearly identical across 1.8.7, REE, 1.9.2 and 1.9.3-dev (I'm using RSpec 2.6.0.rc2). Are you seeing the build slow down in direct correlation to the number of tests you're running? What I've seen is that the delay is constant and a function of the number of files being required and not the number of tests, so the more tests you have, the closer the build times should be on 1.8.7 and 1.9.2. Of course, this can make running a single spec on 1.9.2 irritatingly slow - one of the projects at my workplace that has a largish codebase had to start using spork after upgrading to 1.9.2 because what used to be an acceptable delay to run a single spec on 1.8.7 became excessive on 1.9.2. Cheers, Sidu. http://c42.in http://about.me/ponnappa On 25 April 2011 03:52, Alisson Sales <alisson.sa...@gmail.com> wrote: > On Sun, Apr 24, 2011 at 6:23 PM, Sidu Ponnappa <ckponna...@gmail.com> wrote: >> 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 > https://gist.github.com/939699#file__results_profile_user_spec_ > >> >> Cheers, >> Sidu. >> http://c42.in >> http://about.me/ponnappa >> >> On 25 April 2011 02:44, Alisson Sales <alisson.sa...@gmail.com> wrote: >>> On Sun, Apr 24, 2011 at 5:44 PM, David Chelimsky <dchelim...@gmail.com> >>> wrote: >>>> On Apr 24, 2011, at 3:24 PM, Alisson Sales wrote: >>>> >>>>> Hi, I've started a Rails 3 project using Ruby 1.9.2 and Rspec 2 and my >>>>> test suite is now growing and I'm not happy with the amount of time it >>>>> is tooking to run. I did a benchmark of it with Ruby Enterprise >>>>> Edition 1.8.7 2011.03 and it ran much more faster(5x) than Ruby 1.9.2. >>>>> >>>>> Is it expected or there is something I'm missing? To see the results, >>>>> Gemfile and spec_helper.rb please check the gist >>>>> https://gist.github.com/939699 >>>>> >>>>> Any help or tips are very appreciated. >>>>> >>>>> Thanks, >>>>> Alisson Sales >>>> >>>> rspec runs its own specs faster on 1.9.2 than on 1.8.7: >>>> https://gist.github.com/939865 >>> >>> Cool. >>> >>>> >>>> Which version of rails are you using, and what other gems are in your >>>> Gemfile? >>> >>> Rails 3.0.5, the complete Gemfile is on the gist >>> https://gist.github.com/939699 >>> >>> I think the other gems that may be affecting the speed are >>> factory_girl_rails and shoulda-matchers but in the ruby 1.8.7 the >>> result is so good that I'm wondering if the problem is a specific gem. >>> >>>> >>>> >>>> _______________________________________________ >>>> rspec-users mailing list >>>> rspec-users@rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rspec-users >>>> >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users@rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >> _______________________________________________ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users