Skip to content

Instantly share code, notes, and snippets.

@alanmaciel
Created October 31, 2012 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanmaciel/3990047 to your computer and use it in GitHub Desktop.
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
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