Update benchmark.sh
This commit is contained in:
parent
260f0097f5
commit
3e863bb4f6
@ -39,6 +39,10 @@ for function in "${functions[@]}"
|
|||||||
do
|
do
|
||||||
function_friendly=$(echo $function | cut - -d'-' -f1)
|
function_friendly=$(echo $function | cut - -d'-' -f1)
|
||||||
echo -e "Benchmarking $function\n"
|
echo -e "Benchmarking $function\n"
|
||||||
|
echo -e "Output of $function is:\n"
|
||||||
|
perl -pi -e 'chomp if eof' "$function".body
|
||||||
|
curl --data-binary @"$function".body --header "Host: $function.kubeless" --header "Content-Type:application/json" http://$kuberhost/"$function"
|
||||||
|
echo -e "\n"
|
||||||
if [[ $* = *"--wave"* ]]
|
if [[ $* = *"--wave"* ]]
|
||||||
then
|
then
|
||||||
while [[ $wave_loop -lt $wave_loop_max ]]; do
|
while [[ $wave_loop -lt $wave_loop_max ]]; do
|
||||||
@ -66,10 +70,6 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo -e "Output of $function is:\n"
|
|
||||||
perl -pi -e 'chomp if eof' "$function".body
|
|
||||||
curl --data-binary @"$function".body --header "Host: $function.kubeless" --header "Content-Type:application/json" http://$kuberhost/"$function"
|
|
||||||
echo -e "\n"
|
|
||||||
for connection in "${connections[@]}"
|
for connection in "${connections[@]}"
|
||||||
do
|
do
|
||||||
if [[ $connection -lt $((maxthreads + 1)) ]]
|
if [[ $connection -lt $((maxthreads + 1)) ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user