I've always thought that 1.9.x was supposed to be faster than REE, but consuming more memory. But as it was recently pointed out to me, REE is actually faster than executing RSpec specs, and by a huge margin.
$ rvm use ree
$ rvm gemset create sandbox
$ rvm gemset use sandbox
$ gem install rspec
$ time rspec foo_spec.rb
No examples found.
Finished in 0.07346 seconds
0 examples, 0 failures
real 0m0.104s
user 0m0.059s
sys 0m0.015s
and after doing the same thing with 1.9.3, I'm getting
$ time rspec foo_spec.rb
No examples found.
Finished in 0.13922 seconds
0 examples, 0 failures
real 0m0.208s
user 0m0.122s
sys 0m0.022s
That's twice as much with an empty gemset, containing only rspec
and executed on a empty spec file. I'm seeing even larger differences on gemsets containing multiple gems.
Why is this happening, isn't 1.9.3 supposed to be the fastest version currently available?
I'm running the latest versions installed via RVM on OS X Lion.