Last active
August 29, 2015 13:56
-
-
Save pcreux/8809987 to your computer and use it in GitHub Desktop.
Speed up Rails test suite!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fsync = off | |
synchronous_commit = off | |
full_page_writes = off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install 1.9.3 with perf patch | |
https://gist.github.com/burke/1688857 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
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
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