fix if
This commit is contained in:
parent
38d23ada01
commit
eaa1602434
@ -36,7 +36,7 @@ do
|
|||||||
echo -e "Benchmarking $function\n"
|
echo -e "Benchmarking $function\n"
|
||||||
echo -e "Output of $function is:\n"
|
echo -e "Output of $function is:\n"
|
||||||
perl -pi -e 'chomp if eof' "$function_friendly".body
|
perl -pi -e 'chomp if eof' "$function_friendly".body
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
curl --data-binary @"$function_friendly".body --header "Host: $function.kubeless" --header "Content-Type:application/json" http://$kuberhost/"$function"
|
curl --data-binary @"$function_friendly".body --header "Host: $function.kubeless" --header "Content-Type:application/json" http://$kuberhost/"$function"
|
||||||
else
|
else
|
||||||
@ -52,7 +52,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"
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
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_num".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_num".wave.csv
|
||||||
else
|
else
|
||||||
@ -98,7 +98,7 @@ do
|
|||||||
if [[ $* = *"--hey"* ]]
|
if [[ $* = *"--hey"* ]]
|
||||||
then
|
then
|
||||||
echo -e "hey-summary $datetime\n"
|
echo -e "hey-summary $datetime\n"
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
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
|
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
|
||||||
else
|
else
|
||||||
@ -108,7 +108,7 @@ do
|
|||||||
if [[ $* = *"--csv"* ]]
|
if [[ $* = *"--csv"* ]]
|
||||||
then
|
then
|
||||||
echo -e "hey-csv $datetime\n"
|
echo -e "hey-csv $datetime\n"
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
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
|
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
|
||||||
else
|
else
|
||||||
@ -120,7 +120,7 @@ do
|
|||||||
for num in 1 2 3 4 5 6 7 8 9 10
|
for num in 1 2 3 4 5 6 7 8 9 10
|
||||||
do
|
do
|
||||||
echo -e "hey-for $num\n"
|
echo -e "hey-for $num\n"
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
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
|
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
|
||||||
else
|
else
|
||||||
@ -137,7 +137,7 @@ do
|
|||||||
while [[ $climb_connection -lt $climb_max ]]; do
|
while [[ $climb_connection -lt $climb_max ]]; do
|
||||||
echo -e "Connections: $wave_connection"
|
echo -e "Connections: $wave_connection"
|
||||||
echo -e "Running"
|
echo -e "Running"
|
||||||
if [[ $kubeless ]]
|
if $kubeless;
|
||||||
then
|
then
|
||||||
hey -c $climb_connection -z $time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$climb_connection".wave.csv
|
hey -c $climb_connection -z $time -m POST -o csv -host "$function.kubeless" -D "$function_friendly".body -T "application/json" http://$kuberhost/"$function" > ./data/"$function"."$climb_connection".wave.csv
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user