restructure
This commit is contained in:
parent
127357b421
commit
442c1ddef7
@ -53,7 +53,7 @@ do
|
|||||||
now=$(date '+%Y-%m-%d-%H-%M')
|
now=$(date '+%Y-%m-%d-%H-%M')
|
||||||
echo -e "Connections: $wave_connection"
|
echo -e "Connections: $wave_connection"
|
||||||
echo -e "Running"
|
echo -e "Running"
|
||||||
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
|
hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$wave_connection"."$now".wave.csv
|
||||||
if $wave_dir_up
|
if $wave_dir_up
|
||||||
then
|
then
|
||||||
if [[ $wave_connection -lt $wave_max_conn ]]
|
if [[ $wave_connection -lt $wave_max_conn ]]
|
||||||
@ -93,17 +93,17 @@ do
|
|||||||
if [[ $* = *"--wrk"* ]]
|
if [[ $* = *"--wrk"* ]]
|
||||||
then
|
then
|
||||||
echo -e "wrk $datetime\n"
|
echo -e "wrk $datetime\n"
|
||||||
wrk -t$threads -c"$connection" -d"$time" -s"$function_friendly".wrk -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/"$function" > ./"$function"."$connection"."$time"."$datetime".wrk.txt 2>&1
|
wrk -t$threads -c"$connection" -d"$time" -s"$function_friendly".wrk -H"Host: $function.kubeless" -H"Content-Type:application/json" --latency http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".wrk.txt 2>&1
|
||||||
fi
|
fi
|
||||||
if [[ $* = *"--hey"* ]]
|
if [[ $* = *"--hey"* ]]
|
||||||
then
|
then
|
||||||
echo -e "hey-summary $datetime\n"
|
echo -e "hey-summary $datetime\n"
|
||||||
hey -c "$connection" -z "$time" -m POST -host "$function.kubeless" -D "$function_firendly".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$connection"."$time"."$datetime".hey.txt
|
hey -c "$connection" -z "$time" -m POST -host "$function.kubeless" -D "$function_firendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$connection"."$time"."$datetime".hey.txt
|
||||||
fi
|
fi
|
||||||
if [[ $* = *"--csv"* ]]
|
if [[ $* = *"--csv"* ]]
|
||||||
then
|
then
|
||||||
echo -e "hey-csv $datetime\n"
|
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" > ./"$function"."$connection"."$time"."$datetime".csv
|
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
|
fi
|
||||||
echo -e "Finished at $datetime"
|
echo -e "Finished at $datetime"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user