Skip to content

Instantly share code, notes, and snippets.

@dstokes
Created February 13, 2017 21:41
Show Gist options
  • Save dstokes/e0909685f187b55e24a312b60d7334e1 to your computer and use it in GitHub Desktop.
Save dstokes/e0909685f187b55e24a312b60d7334e1 to your computer and use it in GitHub Desktop.
Generate randomized urls for Siege
#!/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