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