minor changes to scripts

This commit is contained in:
Torma Kristóf 2019-11-05 12:28:26 +01:00
parent 6e8d4d6ff8
commit ba068595d2
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 3 additions and 3 deletions

View File

@ -28,13 +28,13 @@ if [[ LOADTEST_INSTALLED == "" ]]; then
fi
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
function_friendly=$(echo $function | cut - -d'-' -f1)
echo -e "Benchmarking $function\n"
echo -e "Output of $function is:\n"
perl -pi -e 'chomp if eof' "$function_friendly".body
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"
else
curl --header "Host: $function.default.example.com" http://$kuberhost/
@ -117,4 +117,4 @@ for function in "${functions[@]}"; do
echo -e "Finished at $datetime"
done
echo (date '+%Y-%m-%d %H-%M-%S') >> ./data/date.txt
date '+%Y-%m-%d %H:%M:%S' >> ./data/date.txt