Skip to content

Instantly share code, notes, and snippets.

@caius
Last active December 23, 2015 23:39
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 caius/6711235 to your computer and use it in GitHub Desktop.
Save caius/6711235 to your computer and use it in GitHub Desktop.
ruby-1.9.3-p327 with falcon gc patch using ruby-install
# 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?)
# 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