Created
June 15, 2011 20:33
-
-
Save csamuel/1028038 to your computer and use it in GitHub Desktop.
Buildr Startup Time Boost
This file contains 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
# First run from cold JVM | |
→ time buildr clean test | |
... | |
Completed in 47.557s | |
buildr clean test 60.39s user 4.52s system 129% cpu 50.172 total | |
# Start nailgun in the background | |
→ jruby --ng-server & | |
[1] 39845 | |
# Tell JRuby/Buildr to use the nailgun server | |
→ export JRUBY_OPTS="--ng" | |
# Run tests again using nailgun JVM | |
→ time buildr clean test | |
... | |
Completed in 28.596s | |
buildr clean test 0.01s user 0.04s system 0% cpu 37.162 total | |
# Subsequent runs are even faster | |
→ time buildr clean test | |
... | |
Completed in 27.039s | |
buildr clean test 0.01s user 0.04s system 0% cpu 33.382 total | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment