Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created July 13, 2011 17:35
Show Gist options
  • Select an option

  • Save timuruski/1080824 to your computer and use it in GitHub Desktop.

Select an option

Save timuruski/1080824 to your computer and use it in GitHub Desktop.
Horrible test times
# one_equals_one.rb
describe "1 == 1" do
specify { 1.should == 1 }
end
# one_equals_one_with_spec_helper.rb
require 'spec_helper'
describe "1 == 1" do
specify { 1.should == 1 }
end
$ time rspec one_equals_one.rb
.
Finished in 0.00034 seconds
1 example, 0 failures
real 0m0.342s
user 0m0.254s
sys 0m0.087s
$ time rspec one_equals_one_with_spec_helper.rb
.
Finished in 0.53882 seconds
1 example, 0 failures
real 0m8.161s
user 0m6.836s
sys 0m1.028s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment