From 701e9bd2d4d62574730cc532daba21d8ea45c259 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Fri, 28 Jun 2013 11:27:01 +1000 Subject: [PATCH] Run tests using the client mode JVM (or as close as we can get to it) --- script/test_all | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/test_all b/script/test_all index 19bbdf7360..aa0e5da3cb 100755 --- a/script/test_all +++ b/script/test_all @@ -16,6 +16,10 @@ export RUBYOPT='-rrbconfig' # idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html export JRUBY_OPTS='-X-C' # disable JIT since these processes are so short lived +# force jRuby to use client mode JVM or a compilation mode thats as close as possible, +# idea taken from https://github.com/jruby/jruby/wiki/Improving-startup-time +export JAVA_OPTS='-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1' + echo "Bundling Standalone so we can run the specs w/o bundler loaded" bundle install --standalone --binstubs