add bulk testing script

This commit is contained in:
jomo 2014-10-30 00:21:33 +01:00
parent d84d55f533
commit b9c5cc97f5
2 changed files with 4435 additions and 0 deletions

8
test/bulk.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
rm -f "$dir/../skins/"*.png || exit 1
for uuid in `cat "$dir/uuids.txt"`; do
uuid=`echo "$uuid" | tr -d '\r'`
size=$(( ((RANDOM<<15)|RANDOM) % 514 - 1 )) # random number from -1 to 513
curl -sS -o /dev/null -w "%{url_effective} %{http_code} %{time_total}s\\n" "http://127.0.0.1:3000/avatars/$uuid/$size"
done

4427
test/uuids.txt Normal file

File diff suppressed because it is too large Load Diff