Skip to content

Instantly share code, notes, and snippets.

@bertrandom
Created April 12, 2013 20: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 bertrandom/5374909 to your computer and use it in GitHub Desktop.
Save bertrandom/5374909 to your computer and use it in GitHub Desktop.
tourbillion performance testing
#!/bin/bash
i=0
while true
do
i=$(($i+1))
status=$(curl -H 'Content-Type: application/json' --request POST --data '{"data":"Goodbye world!"}' --write-out %{http_code} --silent https://tourbillon.herokuapp.com/dev/null)
if [ "$status" -eq 200 ]
then
echo "$i Discarded successfully."
else
echo "Oh no my data!"
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment