From 2e84b4e5f190c2ae3c60af008a351e3ffdbd01ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 26 Apr 2019 16:59:27 +0200 Subject: [PATCH] Update benchmark.sh --- benchmark/benchmark.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/benchmark.sh b/benchmark/benchmark.sh index 8e70580..78f83b7 100644 --- a/benchmark/benchmark.sh +++ b/benchmark/benchmark.sh @@ -56,7 +56,7 @@ do hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$wave_connection"."$now".wave.csv if [[ $wave_dir_up ]] then - if [[ $wave_connection -le $wave_max_conn ]] + if [[ $wave_connection -lt $wave_max_conn ]] then echo -e "Stepping up" wave_connection=$((wave_connection * 2)) @@ -65,7 +65,7 @@ do wave_dir_up=false fi else - if [[ $wave_connection -ge $wave_min_conn ]] + if [[ $wave_connection -gt $wave_min_conn ]] then echo -e "Stepping down" wave_connection=$((wave_connection / 2))