forked from haiwan/sledge
parent
92e61a4acb
commit
fc16795c47
@ -1,14 +0,0 @@
|
||||
./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,14 @@
|
||||
./test_concurrency.sh 105.txt 60 100 105k.jpg 10000 2>&1 &
|
||||
pid1=$!
|
||||
./test_concurrency.sh 305.txt 60 100 305k.jpg 10003 2>&1 &
|
||||
pid2=$!
|
||||
./test_concurrency.sh 5.txt 60 100 5k.jpg 10006 2>&1 &
|
||||
pid3=$!
|
||||
./test_concurrency.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,14 @@
|
||||
./test_concurrency.sh 105.txt 5000 100 105k.jpg 10000 2>&1 &
|
||||
pid1=$!
|
||||
./test_concurrency.sh 305.txt 5000 100 305k.jpg 10003 2>&1 &
|
||||
pid2=$!
|
||||
./test_concurrency.sh 5.txt 5000 100 5k.jpg 10006 2>&1 &
|
||||
pid3=$!
|
||||
./test_concurrency.sh 40.txt 5000 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 -z $duration\s -t 0 -m GET -D "$image" "http://10.10.1.1:$port" > $output
|
||||
|
@ -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 50 -q 50 -n $duration -t 0 -m GET -D "$image" "http://10.10.1.1:$port" > $output
|
||||
|
Loading…
Reference in new issue