Skip to content

Instantly share code, notes, and snippets.

@themoxman
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save themoxman/9028769 to your computer and use it in GitHub Desktop.

Select an option

Save themoxman/9028769 to your computer and use it in GitHub Desktop.

Pre-Refactor

~/Desktop/coding_resources/programs/md_notes
22:20:20 davemox@daves-mbp $ time for i in {1..5}; do bundle exec rspec spec/controllers/notes_controller_spec.rb; done
......................

Finished in 1.14 seconds
22 examples, 0 failures

Randomized with seed 55733

......................

Finished in 1.26 seconds
22 examples, 0 failures

Randomized with seed 8323

......................

Finished in 1.31 seconds
22 examples, 0 failures

Randomized with seed 24248

......................

Finished in 1.26 seconds
22 examples, 0 failures

Randomized with seed 5604

......................

Finished in 1.31 seconds
22 examples, 0 failures

Randomized with seed 37683


real	0m20.822s
user	0m15.951s
sys	0m2.488s

Post-Refactor

~/Desktop/coding_resources/programs/md_notes
00:46:34 davemox@daves-mbp $ time for i in {1..5}; do bundle exec rspec spec/controllers/notes_controller_spec.rb; done
......................

Finished in 0.91848 seconds
22 examples, 0 failures

Randomized with seed 9798

......................

Finished in 1.01 seconds
22 examples, 0 failures

Randomized with seed 11455

......................

Finished in 0.91917 seconds
22 examples, 0 failures

Randomized with seed 54415

......................

Finished in 0.95752 seconds
22 examples, 0 failures

Randomized with seed 56677

......................

Finished in 0.97526 seconds
22 examples, 0 failures

Randomized with seed 27659


real	0m18.835s
user	0m14.572s
sys	0m2.435s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment