Skip to content

Instantly share code, notes, and snippets.

@markstgodard
Created March 23, 2016 21:11
Show Gist options
  • Save markstgodard/35fa0bf73181b8150415 to your computer and use it in GitHub Desktop.
Save markstgodard/35fa0bf73181b8150415 to your computer and use it in GitHub Desktop.
shas=( 5fb89e4 ac3516a 962dc48 f97f07c 55d71d9 8f63d53 f079b7a a7bae13 0db2b0e )
for i in "${shas[@]}"
do
echo "Checking out sha $i"
git co $i
echo "Restoring godeps.."
godep restore ./...
echo "Building.."
go build
echo "Starting gorouter.."
./gorouter -c ~/temp/gorouter.yml &
echo "\tsleeping for a few seconds.."
sleep 25
echo "START load test"
git status
boom -n 2000 -c 100 -q 2000 -x http://localhost:8081 http://demo.vcap.me | grep -E "Requests|Status code|responses"
echo "END load test"
echo "kill gorouter.."
kill -9 `pgrep gorouter`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment