Skip to content

Instantly share code, notes, and snippets.

@kukulogy
Last active August 30, 2019 03:02
Show Gist options
  • Save kukulogy/307a726d3bd7bcdd96383609ca30942e to your computer and use it in GitHub Desktop.
Save kukulogy/307a726d3bd7bcdd96383609ca30942e to your computer and use it in GitHub Desktop.
Race Condition Test
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json'
siege -c50 -t60S 'http://domain.com/post/ POST val=value1&val2=value2'
# Bash
#!/bin/bash
for y in `seq 1 50` ;
do (for x in `seq 1 50` ;
do curl -d "val=value1&val2=value2" -X POST http://domain.com/post/ ;
done);
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment