From f3ab59a7f4b20e549f768bfe2d32804904b5b5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 25 Apr 2019 11:21:38 +0200 Subject: [PATCH] Update benchmark.sh --- benchmark/benchmark.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/benchmark.sh b/benchmark/benchmark.sh index 2c005d1..975fa87 100644 --- a/benchmark/benchmark.sh +++ b/benchmark/benchmark.sh @@ -1,13 +1,13 @@ #!/bin/bash -functions=(hello isprime hello-scale isprime-scale) +functions=(hello) connections=(50) -times=(5m) +times=(1m) kuberhost="node1:30765" maxthreads=40 WRK_INSTALLED=$(which wrk) -if [ "$WRK_INSTALLED" = "" ] +if [[ $WRK_INSTALLED -eq "" ]] then apt update apt install build-essential libssl-dev git -y @@ -18,7 +18,7 @@ then fi HEY_INSTALLED=$(which hey) -if [ "$HEY_INSTALLED" = "" ] +if [[ $HEY_INSTALLED -eq "" ]] then apt update apt install -y golang @@ -46,7 +46,7 @@ do for time in "${times[@]}" do datetime=$(date '+%Y-%m-%d-%H-%M-%S') - if [[ $@ -eq *"--wave"* ]] + if [[ $@ -eq "*--wave*" ]] then while true; do $now=$(date '+%Y-%m-%d-%H-%M')