Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-03 00:30:52 +02:00 committed by GitHub
parent 6bfe4ac407
commit 356e23b60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -55,10 +55,9 @@ for function in "${data[@]}"
do
echo -e "Benchmarking $function\n"
echo -e "Output of $function is:\n"
perl -pi -e 'chomp if eof' $function.body.txt
curl --data-binary "@$function.body.txt" --header "Host: $function.kubeless" --header "Content-Type:application/json" http://$kuberhost/$function
echo -e "\n"
tr -d '\n' < $function.body.txt > $function.body.txt
tr -d '\r' < $function.body.txt > $function.body.txt
for connection in "${connections[@]}"
do
if [[ $connection -lt 41 ]]