Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created October 31, 2010 00:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technicalpickles/655946 to your computer and use it in GitHub Desktop.
Save technicalpickles/655946 to your computer and use it in GitHub Desktop.
$ time rake spec
(in thescotchzone)
/Users/technicalpickles/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S bundle exec rspec
"./spec/acceptance/home_page_spec.rb"
.
Finished in 0.23965 seconds
1 example, 0 failures
real 0m17.173s
user 0m12.164s
sys 0m2.138s
$ time rake spec
(in thescotchzone)
/Users/technicalpickles/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -S bundle exec rs
pec "./spec/acceptance/home_page_spec.rb"
.
Finished in 0.0533 seconds
1 example, 0 failures
real 0m11.882s
user 0m5.240s
sys 0m1.406s
# thanks to bryanl's writeup: http://smartic.us/2010/10/27/tune-your-ruby-enterprise-edition-garbage-collection-settings-to-run-tests-faster/
$ export RUBY_HEAP_MIN_SLOTS=1000000
$ export RUBY_HEAP_SLOTS_INCREMENT=1000000
$ export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
$ export RUBY_GC_MALLOC_LIMIT=1000000000
$ export RUBY_HEAP_FREE_MIN=500000
$ time rake spec
(in thescotchzone)
/Users/technicalpickles/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -S bundle exec rspec "./spec/acceptance/home_page_spec.rb"
.
Finished in 0.03528 seconds
1 example, 0 failures
real 0m6.272s
user 0m4.428s
sys 0m1.456s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment