Skip to content

Instantly share code, notes, and snippets.

@mambocab
Created October 12, 2016 22:00
Show Gist options
  • Save mambocab/918850a53e4ad348c250c412ec8a07b7 to your computer and use it in GitHub Desktop.
Save mambocab/918850a53e4ad348c250c412ec8a07b7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
set -x
set -e
for branch in instrument-master instrument-asyncore-coalescing ; do
virtualenv $branch
git checkout $branch
set +x
. ./$branch/bin/activate
set -x
pip install -r ./requirements.txt
pip install -r ./test-requirements.txt
pip install .
ccm create ${branch}-benchmark -n 1 -v git:trunk ; ccm start --wait-for-binary-proto
for i in `seq 4` ; do
python ./benchmarks/future_demo_coalescing.py --asyncore-only --num-ops 500000
done
deactivate
rm -r $branch
ccm remove
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment