Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-26 14:45:14 +02:00 committed by GitHub
parent 33f0c002eb
commit db398d09d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ times=(1m)
kuberhost="node1:30765" kuberhost="node1:30765"
maxthreads=40 maxthreads=40
wave_function=isprime
wave_dir_up=true wave_dir_up=true
wave_connection=40 wave_connection=40
wave_max_conn=1600 wave_max_conn=1600
@ -37,9 +38,9 @@ then
while true; do while true; do
now=$(date '+%Y-%m-%d-%H-%M') now=$(date '+%Y-%m-%d-%H-%M')
echo -e "Running" echo -e "Running"
hey -c $wave_connection -z $wave_time -m POST -o csv -host "$function.kubeless" -D "$function".body -T "application/json" http://$kuberhost/"$function" > ./"$function"."$now".wave.txt hey -c $wave_connection -z $wave_time -m POST -o csv -host "$wave_function.kubeless" -D "$wave_function".body -T "application/json" http://$kuberhost/"$wave_function" > ./"$wave_function"."$now".wave.txt
echo -e "Sleeping" echo -e "Sleeping"
sleep "$time" sleep $wave_time
if [[ $wave_dir_up ]] if [[ $wave_dir_up ]]
then then
if [[ $wave_connection -lt $wave_max_conn ]] if [[ $wave_connection -lt $wave_max_conn ]]