I found out that running RSpec on Rails takes too much overhead. It
more than 16s per run although the specs only take less than 6s, like
below. That means almost 11s overhead.
I can’t find the bottleneck. I use latest rspec, and rails 2.2 on
$ time rake spec
I know that Debian’s ruby is slow. So I tried using enterprise ruby. Not
$ time /opt/ruby-enterprise/bin/ruby /var/lib/gems/1.8/bin/rake spec
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