Last active
December 23, 2015 23:39
-
-
Save caius/6711235 to your computer and use it in GitHub Desktop.
ruby-1.9.3-p327 with falcon gc patch using ruby-install
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
# install patched ruby-install that works with falcon patches | |
cd ~/sources | |
git clone git://github.com/caius/ruby-install | |
cd ruby-install | |
git checkout origin/autoconf-when-patching | |
brew install --HEAD homebrew/ruby-install.rb | |
# Install ruby-1.9.3-p327-perf | |
mkdir -p ~/src/perf | |
rm -rf ~/src/perf/ruby-1.9.3-p327* | |
CC=clang CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer" ruby-install -s ~/src/perf -i ~/.rubies/ruby-1.9.3-p327-perf -p https://gist.github.com/funny-falcon/4136373/raw/c614e2ac73080a3a4892bfe470383aa072dd6c62/falcon-gc.diff ruby 1.9.3-p327 | |
# Then you have ~/.rubies/ruby-1.9.3-p327-perf as your installed ruby to use with chruby (or rbenv?) |
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
# From http://grease-your-suite.heroku.com/#87 | |
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 | |
export RUBY_FREE_MIN=200000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment