Skip to content

Instantly share code, notes, and snippets.

@farito
Created March 13, 2013 13:21
Show Gist options
  • Save farito/5151973 to your computer and use it in GitHub Desktop.
Save farito/5151973 to your computer and use it in GitHub Desktop.
Scripts para Stress Test Streaming Publications
/* ScriptApp.sh */
#!/bin/bash
END=100
C=1
while [[ $C -le $END ]]; do
./scriptAp.sh &
((C = C + 1))
echo
done
/* ScriptLoop.sh */
#!/bin/bash
URL='TU URL'
END=100
C=1
while [[ $C -le $END ]]; do
curl -X POST -H "Content-Type:application/json" -d 'MENSAGE JSON' $URL >> result.log
((C = C + 1))
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment