Skip to content

Instantly share code, notes, and snippets.

@torbjon
Last active October 13, 2015 10:57
Show Gist options
  • Select an option

  • Save torbjon/4185203 to your computer and use it in GitHub Desktop.

Select an option

Save torbjon/4185203 to your computer and use it in GitHub Desktop.

###Бенчмарки Машина: Маc ОС Х 10.7.5, 2Ghz Core2Duo, 8Gb RAM

Тестировал средний проект командой:

time bundle exec rake routes
Ruby version Time
ruby-1.9.3-p125 11.85s
ruby-1.9.3-p194 10.43s
ruby-1.9.3-p194-perf 8.05s
ruby-1.9.3-p286-turbo 9.50s
ruby-1.9.3-p286-turbo(-march=core2 -O2....) 4.96s

###Инсталляция последнего

в ~/.rvmrc добавить

rvm_configure_env=(CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer") 

далее

rvm install 1.9.3-turbo --patch falcon

в ~/.bash_profile добавить:

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

Источники

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment