Skip to content

Instantly share code, notes, and snippets.

@pcreux
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pcreux/8809987 to your computer and use it in GitHub Desktop.
Save pcreux/8809987 to your computer and use it in GitHub Desktop.
Speed up Rails test suite!
fsync = off
synchronous_commit = off
full_page_writes = off
Install 1.9.3 with perf patch
https://gist.github.com/burke/1688857
## Speed up 1.9.3
export RUBY_GC_MALLOC_LIMIT=100000000
export RUBY_HEAP_MIN_SLOTS=40000
export RUBY_FREE_MIN=500000
## Speed up 2.1.0
export RUBY_GC_MALLOC_LIMIT=100000000
export RUBY_GC_HEAP_INIT_SLOTS=40000
export RUBY_GC_HEAP_FREE_SLOTS=500000
@chuckbergeron
Copy link

I also have:

export RUBY_HEAP_MIN_SLOTS=800000
export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_SLOTS_INCREMENT=300000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_FREE_MIN=200000

@kalv
Copy link

kalv commented Jun 24, 2015

I have this in my .gemrc, mainly to not install the rdoc

--- 
:bulk_threshold: 1000
gem: --no-ri --no-rdoc
:verbose: true
:benchmark: false
:update_sources: true
:backtrace: false
:sources:
- http://rubygems.org
- http://gemcutter.org

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