Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Created August 15, 2012 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamSaffron/3364771 to your computer and use it in GitHub Desktop.
Save SamSaffron/3364771 to your computer and use it in GitHub Desktop.
The effect of the Ruby falcon patches

The Effect of https://gist.github.com/2600122

Before (1.9.3 p125)

$ time rake --tasks
real    0m5.424s
user    0m5.012s
sys	    0m0.388s

After (1.9.3 p194 - falcon)

real  0m2.096s
user  0m1.712s
sys   0m0.364s

After adding:

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
 
real  0m1.824s
user  0m1.432s
sys   0m0.372s

Macbook pro 1.9.3 p194:

real 0m3.160s
user 0m2.739s
sys	 0m0.414s

194 falcon

real 0m2.138s
user 0m1.782s
sys  0m0.352s

Including env:

real 0m1.824s
user 0m1.444s
sys  0m0.374s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment