Skip to content

Instantly share code, notes, and snippets.

@himynameisjonas
Forked from burke/0-readme.md
Last active October 13, 2015 05:48

Revisions

  1. himynameisjonas revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    VERSION="1.9.3-p385"
    SRC="/tmp/$VERSION-railsexpress"
    SRC="/tmp/$VERSION-perf"
    curl https://raw.github.com/gist/4148846/$VERSION-patched.sh > $SRC

    if command -v brew > /dev/null
  2. himynameisjonas revised this gist Feb 20, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -14,5 +14,5 @@ then
    CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`"
    fi
    fi
    CONFIGURE_OPTS=$CONFIGURE_OPTS rbenv install $SRC

    CC=gcc CONFIGURE_OPTS=$CONFIGURE_OPTS rbenv install $SRC
  3. himynameisjonas renamed this gist Feb 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. himynameisjonas revised this gist Feb 20, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions 1.9.3-p385-patched.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    build_package_combined_patch() {
    local package_name="$1"

    {
    curl https://github.com/funny-falcon/ruby/compare/p385...p385_falcon_gc.diff | patch -p1
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make -j 8
    make install
    } >&4 2>&1

    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p385" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.gz" combined_patch
    install_package "ruby-1.9.3-p385" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.gz" combined_patch
  5. himynameisjonas revised this gist Feb 20, 2013. 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 @@
    # ruby-1.9.3-p327 cumulative performance patch for rbenv
    # ruby-1.9.3-p385 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).
    This installs a patched ruby 1.9.3-p385 with various performance improvements and a backported COW-friendly GC, all [courtesy of funny-falcon](https://gist.github.com/4136373).

    ### Requirements

    @@ -12,7 +12,7 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    ### Ok, let's do this!

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

    ### BONUS!
  6. himynameisjonas revised this gist Feb 20, 2013. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions 1.9.3-p385-patched.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    build_package_combined_patch() {
    local package_name="$1"

    {
    curl https://github.com/funny-falcon/ruby/compare/p385...p385_falcon_gc.diff | patch -p1
    autoconf
    ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
    make -j 8
    make install
    } >&4 2>&1

    }

    install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
    install_package "ruby-1.9.3-p385" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.gz" combined_patch
  7. himynameisjonas revised this gist Feb 20, 2013. 1 changed file with 18 additions and 3 deletions.
    21 changes: 18 additions & 3 deletions rbenv.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,18 @@
    VERSION="1.9.3-p327"
    curl https://raw.github.com/gist/4148846/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install /tmp/$VERSION-perf
    VERSION="1.9.3-p385"
    SRC="/tmp/$VERSION-railsexpress"
    curl https://raw.github.com/gist/4148846/$VERSION-patched.sh > $SRC

    if command -v brew > /dev/null
    then
    if brew --prefix openssl > /dev/null
    then
    CONFIGURE_OPTS="$CONFIGURE_OPTS --with-openssl-dir=`brew --prefix openssl`"
    fi

    if brew --prefix readline > /dev/null
    then
    CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`"
    fi
    fi

    CONFIGURE_OPTS=$CONFIGURE_OPTS rbenv install $SRC
  8. himynameisjonas revised this gist Nov 26, 2012. 2 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion 0-readme.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ You will also need a C Compiler. If you're on Linux, you probably already have o
    ### Ok, let's do this!

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

    ### BONUS!
    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-p327"
    curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    rbenv install /tmp/$VERSION-perf
    curl https://raw.github.com/gist/4148846/2-$VERSION-patched.sh > /tmp/$VERSION-perf
    CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install /tmp/$VERSION-perf
  9. @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).

  10. @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
  11. @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.
  12. @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"
  13. @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"
  14. @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

  15. @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

  16. @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"
  17. @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"
  18. @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"

  19. @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:
  20. @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"

  21. @burke burke renamed this gist Nov 23, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  22. @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
  23. @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.
  24. @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!

  25. @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
  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
    @@ -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.
  27. @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**:

  28. @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**:

  29. @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**:
  30. @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.