upload hey_test.sh and test_rps.sh

sledge_graph
xiaosuGW 4 years ago
parent 7a2d45ddbf
commit 0df988eba9

@ -0,0 +1,14 @@
./test_rps.sh 105.txt 60 100 105k.jpg 10000 2>&1 &
pid1=$!
./test_rps.sh 305.txt 60 100 305k.jpg 10003 2>&1 &
pid2=$!
./test_rps.sh 5.txt 60 100 5k.jpg 10006 2>&1 &
pid3=$!
./test_rps.sh 40.txt 60 100 40k.jpg 10009 2>&1 &
pid4=$!
wait -f $pid1
wait -f $pid2
wait -f $pid3
wait -f $pid4
printf "[OK]\n"

@ -0,0 +1,19 @@
function usage {
echo "$0 [output file] [duration(s)] [rps] [image file] [port]"
exit 1
}
if [ $# != 5 ] ; then
usage
exit 1;
fi
output=$1
duration=$2
rps=$3
image=$4
port=$5
#hey -disable-compression -disable-keepalive -disable-redirects -c 1 -q $rps -z $duration\s -cpus 1 -t 0 -m GET -D "$image" "http://10.10.1.1:$port"
hey -disable-compression -disable-keepalive -disable-redirects -c 8 -q 50 -z $duration\s -t 0 -m GET -D "$image" "http://10.10.1.1:$port" > $output
Loading…
Cancel
Save