Created
October 31, 2012 21:34
-
-
Save alanmaciel/3990047 to your computer and use it in GitHub Desktop.
To Spork or not to Spork: get a baseline for the testing overhead by timing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITHOUT SPORK: | |
$ time bundle exec rspec spec/requests/static_pages_spec.rb | |
...... | |
6 examples, 0 failures | |
real 0m8.633s | |
user 0m7.240s | |
sys 0m1.068s | |
WITH SPORK | |
First start the server: | |
$ bundle exec spork | |
Using RSpec | |
Loading Spork.prefork block... | |
Spork is ready and listening on 8989! | |
$ time bundle exec rspec spec/requests/static_pages_spec.rb --drb | |
...... | |
6 examples, 0 failures | |
real 0m2.649s | |
user 0m1.259s | |
sys 0m0.258s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment