February 2012
2 posts
4 tags
Speeding up RSpec test suite: Tip #3
Assuming you are using ruby 1.9.3-p0 at the moment, then I suggest applying funny-falcon patch (https://gist.github.com/1688857). This made my rails start up faster and also the overall runtime. This is also included in the RVM. To install it, just run: rvm get head rvm install 1.9.3-falcon rvm use 1.9.3-falcon I also suggest adding following to your shell rc file (bonus section from the gist)....
Feb 11th
3 tags
Speeding up RSpec test suite: Tip #2
Got lots of RAM? Disable GC. I have this snippet in my spec_helper.rb if ENV["RUBY_DISABLE_GC_FOR_SPECS"] config.before(:suite) do puts "GC disabled" GC.disable end end And in my shell rc file I have: export RUBY_DISABLE_GC_FOR_SPECS="true" Warning: If you have many selenium tests, then do not disable it completely. You’ll just run out of RAM.
Feb 11th
January 2012
1 post
3 tags
Speeding up RSpec test suite: Tip #1
If your test suite is database heavy and you are using postgresql, then turn off fsync and synchronous_commit. fsync - PostgreSQL server will try to make sure that updates are physically written to disk (link). In the development machine we usually don’t care about power failures and data loss, especially with the test data. synchronous_commit - Specifies whether transaction...
Jan 14th
4 notes