Aslak, The best time I get is 6.3 seconds. I'm using "time script/server" command and hitting Ctrl-C immediately after I see "** Use CTRL-C to stop."
On Sun, Jan 4, 2009 at 9:43 PM, aslak hellesoy <aslak.helle...@gmail.com>wrote: > > > On Sun, Jan 4, 2009 at 3:58 AM, Reza Primardiansyah < > reza.primardians...@gmail.com> wrote: > >> Greetings, >> I found out that running RSpec on Rails takes too much overhead. It takes >> more than 16s per run although the specs only take less than 6s, like seen >> below. That means almost 11s overhead. >> I can't find the bottleneck. I use latest rspec, and rails 2.2 on Debian. >> >> $ time rake spec >>> (in /home/reza/system) >>> >>> .................................................................................................................................................................................................................................................................................................................................................... >>> >>> Finished in 5.493595 seconds >>> >>> 340 examples, 0 failures >>> >>> real 0m16.497s >>> user 0m14.059s >>> sys 0m2.266s >>> >> >> I know that Debian's ruby is slow. So I tried using enterprise ruby. Not >> much difference >> >> $ time /opt/ruby-enterprise/bin/ruby /var/lib/gems/1.8/bin/rake spec >>> (in /home/reza/system) >>> >>> .................................................................................................................................................................................................................................................................................................................................................... >>> >>> Finished in 3.170093 seconds >>> >>> 340 examples, 0 failures >>> >>> real 0m12.033s >>> user 0m9.948s >>> sys 0m1.735s >>> >> >> The overhead is also felt when using autospec. Even using sqlite's >> in-memory-db doesn't change much. >> >> Can anyone give me hint about what happens and what to do to overcome it? >> > > How long does ruby script/server take before the server is up? > > Aslak > > >> >> Thanks all. >> >> _______________________________________________ >> 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