Created
February 13, 2017 21:41
-
-
Save dstokes/e0909685f187b55e24a312b60d7334e1 to your computer and use it in GitHub Desktop.
Generate randomized urls for Siege
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Generate random urls for Siege | |
# | |
# $1: url | |
# $2: count | |
if [[ -z $1 ]]; then | |
echo "Usage: $0 http://my.site 1000" | |
exit 1 | |
fi | |
printf "H=%s\n" $1 | |
for i in $(seq 0 $2); do | |
printf "\$(H)?$RANDOM$i\n"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment