Skip to content

Instantly share code, notes, and snippets.

@ritxi
Forked from burke/0-readme.md
Created December 6, 2012 19:39
Show Gist options
  • Save ritxi/4227628 to your computer and use it in GitHub Desktop.
Save ritxi/4227628 to your computer and use it in GitHub Desktop.

Revisions

  1. @burke burke revised this gist Nov 27, 2012. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -17,11 +17,17 @@ curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p327

    ### BONUS!

    Putting the following in your shell config (eg. `~/.bash_profile`) will make Rails even faster, but will increase its memory footprint:
    Putting the following in your shell config (eg. `~/.bash_profile`) will make Rails even faster, but will increase its memory footprint. For most applications, this will probably work well for you:

    export RUBY_GC_MALLOC_LIMIT=60000000
    export RUBY_FREE_MIN=200000

    If you have a particularly large rails app (say, >100k lines), this seems to improve it even more:

    export RUBY_GC_MALLOC_LIMIT=1000000000
    export RUBY_FREE_MIN=500000
    export RUBY_HEAP_MIN_SLOTS=40000

    ### More BONUS!

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. **This generally makes my ruby ~1.5% faster**. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".
  2. @burke burke revised this gist Nov 27, 2012. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -19,11 +19,8 @@ curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p327

    Putting the following in your shell config (eg. `~/.bash_profile`) will make Rails even faster, but will increase its memory footprint:

    export RUBY_HEAP_MIN_SLOTS=1000000
    export RUBY_HEAP_SLOTS_INCREMENT=1000000
    export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
    export RUBY_GC_MALLOC_LIMIT=100000000
    export RUBY_HEAP_FREE_MIN=500000
    export RUBY_GC_MALLOC_LIMIT=60000000
    export RUBY_FREE_MIN=200000

    ### More BONUS!

  3. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Patched ruby 1.9.3-p327 for 30% faster rails boot
    # ruby-1.9.3-p327 cumulative performance patch for rbenv

    This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).

  4. @burke burke revised this gist Nov 23, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    # Patched ruby 1.9.3-p327 for 30% faster rails boot

    ### Overview

    This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).

    ### Requirements
  5. @burke burke revised this gist Nov 23, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. **This generally makes my ruby ~1.5% faster**. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"

    This has to be run *BEFORE* you compile ruby.
  6. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    ### More BONUS!

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. *This generally makes my ruby ~1.5% faster*. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".
    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. **This generally makes my ruby ~1.5% faster**. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
  7. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    ### More BONUS!

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".
    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. *This generally makes my ruby ~1.5% faster*. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
  8. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ### Overview

    This script installs a patched version of ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).
    This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).

    ### Requirements

  9. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 8 deletions.
    9 changes: 1 addition & 8 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -2,14 +2,7 @@

    ### Overview

    This script installs a patched version of ruby 1.9.3-p327 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

    Many thanks to funny-falcon for the performance patches.

    * http://github.com/ruby/ruby/pull/66
    * http://github.com/ruby/ruby/pull/68
    * http://github.com/ruby/ruby/pull/83
    * http://github.com/ruby/ruby/pull/84
    This script installs a patched version of ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).

    ### Requirements

  10. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    ### More BONUS!

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance.
    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance. I had to change it to `-march=core2` on my Macbook Air 2011/11".

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
  11. @burke burke revised this gist Nov 23, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    ### More BONUS!

    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster.
    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster. See http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel for more guidance.

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
  12. @burke burke revised this gist Nov 23, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai

    ### More BONUS!

    If you're feeling adventurous, you can set some additional optimization flags before you run the command above. These make the compiled ruby a little faster, but sometimes cause the build to fail, depending on a lot of different factors.
    If you're feeling adventurous, you can set some additional compile flags before you run the command above. These may cause the build to fail. If so, you can try again without the `march` flag, and it'll probably work. This generally makes my ruby ~1-1.5% faster.

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"

  13. @burke burke revised this gist Nov 23, 2012. 1 changed file with 0 additions and 12 deletions.
    12 changes: 0 additions & 12 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -16,26 +16,14 @@ Many thanks to funny-falcon for the performance patches.
    * [rbenv](https://github.com/sstephenson/rbenv/)
    * [ruby-build](https://github.com/sstephenson/ruby-build/)

    OR

    * [rvm](https://github.com/wayneeseguin/rvm/)

    You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and `brew install autoconf` using [homebrew](http://github.com/mxcl/homebrew).

    ### Ok, let's do this!

    If you're using **rbenv**:

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p327-perf
    ```

    If you're using **rvm**:

    ```sh
    rvm get head && rvm reinstall 1.9.3-perf --patch falcon --force-autoconf -j 3
    ```

    ### BONUS!

    Putting the following in your shell config (eg. `~/.bash_profile`) will make Rails even faster, but will increase its memory footprint:
  14. @burke burke revised this gist Nov 23, 2012. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -46,4 +46,9 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    export RUBY_GC_MALLOC_LIMIT=100000000
    export RUBY_HEAP_FREE_MIN=500000

    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app. It can effectively boot your tests (and consoles, servers, runners...) in half a second, no matter the size of your app.
    ### More BONUS!

    If you're feeling adventurous, you can set some additional optimization flags before you run the command above. These make the compiled ruby a little faster, but sometimes cause the build to fail, depending on a lot of different factors.

    export CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"

  15. @burke burke renamed this gist Nov 23, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  16. @burke burke revised this gist Nov 23, 2012. 3 changed files with 6 additions and 6 deletions.
    6 changes: 3 additions & 3 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Patched ruby 1.9.3-p194 for 30% faster rails boot
    # Patched ruby 1.9.3-p327 for 30% faster rails boot

    ### Overview

    This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
    This script installs a patched version of ruby 1.9.3-p327 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

    Many thanks to funny-falcon for the performance patches.

    @@ -27,7 +27,7 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    If you're using **rbenv**:

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p327-perf
    ```

    If you're using **rvm**:
    4 changes: 2 additions & 2 deletions 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ build_package_combined_patch() {
    local package_name="$1"

    {
    curl https://raw.github.com/gist/2593385/perf_and_gc.diff | patch -p1
    curl https://raw.github.com/gist/4136373/falcon-gc.diff | patch -p1
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make -j 8
    @@ -12,4 +12,4 @@ build_package_combined_patch() {
    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz" combined_patch
    install_package "ruby-1.9.3-p327" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz" combined_patch
    2 changes: 1 addition & 1 deletion rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    VERSION="1.9.3-p194"
    VERSION="1.9.3-p327"
    curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-perf
  17. @burke burke revised this gist Aug 22, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    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_GC_MALLOC_LIMIT=100000000
    export RUBY_HEAP_FREE_MIN=500000

    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app. It can effectively boot your tests (and consoles, servers, runners...) in half a second, no matter the size of your app.
  18. @burke burke revised this gist Aug 22, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ OR

    * [rvm](https://github.com/wayneeseguin/rvm/)

    You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and `brew install autoconf` using [homebrew](http://github.com/mxcl/homebrew)
    You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and `brew install autoconf` using [homebrew](http://github.com/mxcl/homebrew).

    ### Ok, let's do this!

  19. @burke burke revised this gist Aug 22, 2012. 2 changed files with 2 additions and 1 deletion.
    2 changes: 2 additions & 0 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,8 @@ OR

    * [rvm](https://github.com/wayneeseguin/rvm/)

    You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and `brew install autoconf` using [homebrew](http://github.com/mxcl/homebrew)

    ### Ok, let's do this!

    If you're using **rbenv**:
    1 change: 0 additions & 1 deletion 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,5 @@ build_package_combined_patch() {

    }

    require_gcc
    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p194" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz" combined_patch
  20. @burke burke revised this gist Aug 11, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -44,4 +44,4 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    export RUBY_GC_MALLOC_LIMIT=1000000000
    export RUBY_HEAP_FREE_MIN=500000

    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app.
    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app. It can effectively boot your tests (and consoles, servers, runners...) in half a second, no matter the size of your app.
  21. @burke burke revised this gist Aug 11, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ OR

    * [rvm](https://github.com/wayneeseguin/rvm/)

    ### Ok, let's do this
    ### Ok, let's do this!

    If you're using **rbenv**:

  22. @burke burke revised this gist Aug 11, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Patched ruby 1.9.3-p194 for 30% faster rails boot

    ### What is?
    ### Overview

    This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

    @@ -11,7 +11,7 @@ Many thanks to funny-falcon for the performance patches.
    * http://github.com/ruby/ruby/pull/83
    * http://github.com/ruby/ruby/pull/84

    ### What I need?
    ### Requirements

    * [rbenv](https://github.com/sstephenson/rbenv/)
    * [ruby-build](https://github.com/sstephenson/ruby-build/)
    @@ -20,7 +20,7 @@ OR

    * [rvm](https://github.com/wayneeseguin/rvm/)

    ### How do I do?
    ### Ok, let's do this

    If you're using **rbenv**:

  23. @burke burke revised this gist Aug 11, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ OR
    If you're using **rbenv**:

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh && rbenv global 1.9.3-p194-perf
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh ; rbenv global 1.9.3-p194-perf
    ```

    If you're using **rvm**:
  24. @burke burke revised this gist Aug 11, 2012. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -13,12 +13,12 @@ Many thanks to funny-falcon for the performance patches.

    ### What I need?

    * rbenv
    * ruby-build
    * [rbenv](https://github.com/sstephenson/rbenv/)
    * [ruby-build](https://github.com/sstephenson/ruby-build/)

    OR

    * rvm
    * [rvm](https://github.com/wayneeseguin/rvm/)

    ### How do I do?

    @@ -44,4 +44,4 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    export RUBY_GC_MALLOC_LIMIT=1000000000
    export RUBY_HEAP_FREE_MIN=500000

    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app.
    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app.
  25. @burke burke revised this gist Aug 11, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,6 @@ This script installs a patched version of ruby 1.9.3-p194 with boot-time perform

    Many thanks to funny-falcon for the performance patches.

    * http://github.com/ruby/ruby/pull/47
    * http://github.com/ruby/ruby/pull/66
    * http://github.com/ruby/ruby/pull/68
    * http://github.com/ruby/ruby/pull/83
  26. @burke burke revised this gist Aug 11, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Patched ruby 1.9.3-p125 for 30% faster rails boot
    # Patched ruby 1.9.3-p194 for 30% faster rails boot

    ### What is?

  27. @burke burke revised this gist Aug 11, 2012. 3 changed files with 12 additions and 11 deletions.
    14 changes: 8 additions & 6 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,9 @@

    ### What is?

    This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
    This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

    Huge thanks to funny-falcon for the performance patches.
    Many thanks to funny-falcon for the performance patches.

    * http://github.com/ruby/ruby/pull/47
    * http://github.com/ruby/ruby/pull/66
    @@ -17,7 +17,7 @@ Huge thanks to funny-falcon for the performance patches.
    * rbenv
    * ruby-build

    OR
    OR

    * rvm

    @@ -26,13 +26,13 @@ OR
    If you're using **rbenv**:

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh && rbenv global 1.9.3-p125-perf
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh && rbenv global 1.9.3-p194-perf
    ```

    If you're using **rvm**:

    ```sh
    rvm get head && rvm reinstall 1.9.3-perf --patch falcon,debug --force-autoconf -j 3
    rvm get head && rvm reinstall 1.9.3-perf --patch falcon --force-autoconf -j 3
    ```

    ### BONUS!
    @@ -43,4 +43,6 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    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_HEAP_FREE_MIN=500000

    Also, you might want to try out [Zeus](https://github.com/burke/zeus), which takes advantage of the patched GC to preload your rails app.
    5 changes: 2 additions & 3 deletions 2-1.9.3-p125-patched.sh → 2-1.9.3-p194-patched.sh
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,7 @@ build_package_combined_patch() {
    local package_name="$1"

    {
    curl https://github.com/ruby/ruby/pull/47.diff | git apply
    curl https://raw.github.com/gist/1859082/performance_and_backport_gc.patch | patch -p1
    curl https://raw.github.com/gist/2593385/perf_and_gc.diff | patch -p1
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make -j 8
    @@ -14,4 +13,4 @@ build_package_combined_patch() {

    require_gcc
    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p125" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz" combined_patch
    install_package "ruby-1.9.3-p194" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz" combined_patch
    4 changes: 2 additions & 2 deletions rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    VERSION="1.9.3-p125"
    VERSION="1.9.3-p194"
    curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-perf
  28. Burke Libbey revised this gist Mar 8, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ OR
    If you're using **rbenv**:

    ```sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh
    curl https://raw.github.com/gist/1688857/rbenv.sh | sh && rbenv global 1.9.3-p125-perf
    ```

    If you're using **rvm**:
  29. Burke Libbey revised this gist Mar 7, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ curl https://raw.github.com/gist/1688857/rbenv.sh | sh
    If you're using **rvm**:

    ```sh
    rvm get head && rvm install 1.9.3-perf --patch falcon
    rvm get head && rvm reinstall 1.9.3-perf --patch falcon,debug --force-autoconf -j 3
    ```

    ### BONUS!
    @@ -43,4 +43,4 @@ Putting the following in your shell config (eg. `~/.bash_profile`) will make Rai
    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_HEAP_FREE_MIN=500000
  30. Burke Libbey revised this gist Mar 7, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions 2-1.9.3-p125-patched.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@ build_package_combined_patch() {
    local package_name="$1"

    {
    curl https://github.com/ruby/ruby/pull/47.diff | git apply
    curl https://raw.github.com/gist/1859082/performance_and_backport_gc.patch | patch -p1
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS