fix climb
This commit is contained in:
parent
bdb1b3649f
commit
a433882966
@ -96,18 +96,18 @@ for function in "${functions[@]}"; do
|
|||||||
if [[ $* == *"--climb"* ]]; then
|
if [[ $* == *"--climb"* ]]; then
|
||||||
while [[ $climb -lt $climb_max ]]; do
|
while [[ $climb -lt $climb_max ]]; do
|
||||||
climb_rps=$((rps * climb))
|
climb_rps=$((rps * climb))
|
||||||
echo -e "Connections: $climb_connection"
|
echo -e "Rps: $climb_rps"
|
||||||
if $kubeless; then
|
if $kubeless; then
|
||||||
if [[ $* == *"--loadtest"* ]]; then
|
if [[ $* == *"--loadtest"* ]]; then
|
||||||
loadtest -k -H "Host: $function.kubeless" --rps $climb_rps -c 1 -t $time -p "$function_firendly".body http://$kuberhost/"$function" >./data/"$function"."$climb_connection".climb.txt
|
loadtest -k -H "Host: $function.kubeless" --rps $climb_rps -c 1 -t $time -p "$function_firendly".body http://$kuberhost/"$function" >./data/"$function"."$climb_rps".climb.txt
|
||||||
else
|
else
|
||||||
hey -c 1 -q $climb_rps -z $time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" >./data/"$function"."$climb_connection".climb.csv
|
hey -c 1 -q $climb_rps -z $time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" >./data/"$function"."$climb_rps".climb.csv
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ $* == *"--loadtest"* ]]; then
|
if [[ $* == *"--loadtest"* ]]; then
|
||||||
loadtest -k -H "Host: $function.default.example.com" --rps $climb_rps -c 1 -t $time http://$kuberhost/ >./data/"$function"."$climb_connection".climb.txt
|
loadtest -k -H "Host: $function.default.example.com" --rps $climb_rps -c 1 -t $time http://$kuberhost/ >./data/"$function"."$climb_rps".climb.txt
|
||||||
else
|
else
|
||||||
hey -c 1 -q $climb_rps -z $time -m POST -o csv -host "$function.default.example.com" http://$kuberhost/ >./data/"$function"."$climb_connection".climb.csv
|
hey -c 1 -q $climb_rps -z $time -m POST -o csv -host "$function.default.example.com" http://$kuberhost/ >./data/"$function"."$climb_rps".climb.csv
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
climb=$((climb + 1))
|
climb=$((climb + 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user