Skip to content

Instantly share code, notes, and snippets.

@jdickey
Created August 31, 2013 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdickey/6399279 to your computer and use it in GitHub Desktop.
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
#!/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