From a43388296693158c259c9d15429efe8570176dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 29 Oct 2019 14:24:37 +0100 Subject: [PATCH] fix climb --- benchmark/classic/benchmark.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/classic/benchmark.sh b/benchmark/classic/benchmark.sh index 0cc03ef..a09f92e 100644 --- a/benchmark/classic/benchmark.sh +++ b/benchmark/classic/benchmark.sh @@ -96,18 +96,18 @@ for function in "${functions[@]}"; do if [[ $* == *"--climb"* ]]; then while [[ $climb -lt $climb_max ]]; do climb_rps=$((rps * climb)) - echo -e "Connections: $climb_connection" + echo -e "Rps: $climb_rps" if $kubeless; 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 - 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 else 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 - 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 climb=$((climb + 1))