From 50bdc10a510ad380ba4240e75695f4d8551b0bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 20 Oct 2019 21:33:49 +0200 Subject: [PATCH] for hey --- benchmark/classic/benchmark.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/benchmark/classic/benchmark.sh b/benchmark/classic/benchmark.sh index b02c40c..20b5844 100644 --- a/benchmark/classic/benchmark.sh +++ b/benchmark/classic/benchmark.sh @@ -91,6 +91,13 @@ do echo -e "hey-csv $datetime\n" hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".csv fi + if [[ $* = *"--for"* ]] + for num in 1 2 3 4 5 6 7 8 9 10 + do + echo -e "hey-for $datetime\n" + hey -c "$connection" -z "$time" -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$num".csv + done + fi echo -e "Finished at $datetime" done done