Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-25 11:06:13 +02:00 committed by GitHub
parent 1fd1668ce9
commit 82a3645235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,11 @@ do
datetime=$(date '+%Y-%m-%d-%H-%M-%S') datetime=$(date '+%Y-%m-%d-%H-%M-%S')
if [[ $@ -eq *"--wave"* ]] if [[ $@ -eq *"--wave"* ]]
then then
hey -c $connection -z $time -m POST -o csv -host "$function.kubeless" -D $function.body -T "application/json" http://$kuberhost/$function > ./$function.$connection.$time.$datetime.heywave.txt while true; do
$now=$(date '+%Y-%m-%d-%H-%M')
hey -c $connection -z $time -m POST -o csv -host "$function.kubeless" -D $function.body -T "application/json" http://$kuberhost/$function > ./$function.$connection.$time.$now.heywave.txt
sleep $time
done
else else
echo -e "Time: $time\n" echo -e "Time: $time\n"
echo -e "wrk\n" echo -e "wrk\n"