Created
March 18, 2013 20:57
-
-
Save Jurawa/5190741 to your computer and use it in GitHub Desktop.
Ruby falcon patch speed results
This file contains hidden or 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
The effect of http://blog.rubyhead.com/2012/12/02/speed-up-your-ruby/ tested on a 2010 Macbook pro. | |
Original with ruby 1.9.3p327: | |
ruby -v | |
ruby 1.9.3p327 (2012-11-10) [x86_64-darwin12.2.0] | |
time rake environment | |
real 0m35.411s | |
user 0m26.963s | |
sys 0m2.992s | |
After installing falcon patch: | |
rvm install 1.9.3-p327 -n falcon --patch falcon | |
rvm use ruby-1.9.3-p327-falcon --default | |
ruby -v | |
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0] | |
time rake environment | |
real 0m11.733s | |
user 0m8.365s | |
sys 0m2.335s | |
After adding the following to ~./bash_profile | |
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 environment | |
real 0m9.188s | |
user 0m5.728s | |
sys 0m2.417s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment