Created
August 31, 2013 16:31
-
-
Save jdickey/6399279 to your computer and use it in GitHub Desktop.
Benchmarking script building my current project using the new `-j` feature in Bundler 1.4.0pre2 per http://robots.thoughtbot.com/post/59584648154/parallel-gem-installing-using-bundler
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
#!/bin/bash | |
for BIJOBS in 1 2 4 | |
do | |
export T1=`date` | |
rm -rf Gemfile.lock vendor/cache/* vendor/ruby/* | |
bundle install --jobs $BIJOBS --path vendor | |
bundle package --all | |
bundle install --binstubs | |
echo Reporting start and end times for BIJOBS=$BIJOBS | |
echo $T1 | |
date | |
echo End of reporting this run | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment