You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
636 B
21 lines
636 B
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
|
|
|
|
echo "hey test"
|
|
|
|
hey -disable-compression -disable-keepalive -disable-redirects -c 5 -q $rps -z $duration\s -t 0 -m GET -D "$image" "http://10.16.31.135:$port" > $output
|
|
#loadtest -c 5 --rps $rps -t $duration --method GET --data @$image "http://10.16.109.192:$port" > $output
|
|
#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 |