minor changes to scripts
This commit is contained in:
parent
6e8d4d6ff8
commit
ba068595d2
@ -28,13 +28,13 @@ if [[ LOADTEST_INSTALLED == "" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Benchmarking functions\n"
|
echo -e "Benchmarking functions\n"
|
||||||
echo (date '+%Y-%m-%d %H-%M-%S') > ./data/date.txt
|
date '+%Y-%m-%d %H:%M:%S' > ./data/date.txt
|
||||||
for function in "${functions[@]}"; do
|
for function in "${functions[@]}"; 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"
|
echo -e "Output of $function is:\n"
|
||||||
perl -pi -e 'chomp if eof' "$function_friendly".body
|
|
||||||
if $kubeless; then
|
if $kubeless; then
|
||||||
|
perl -pi -e 'chomp if eof' "$function_friendly".body
|
||||||
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
|
||||||
curl --header "Host: $function.default.example.com" http://$kuberhost/
|
curl --header "Host: $function.default.example.com" http://$kuberhost/
|
||||||
@ -117,4 +117,4 @@ for function in "${functions[@]}"; do
|
|||||||
echo -e "Finished at $datetime"
|
echo -e "Finished at $datetime"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo (date '+%Y-%m-%d %H-%M-%S') >> ./data/date.txt
|
date '+%Y-%m-%d %H:%M:%S' >> ./data/date.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user