From d34d09e19636d79cf0cab9347959b278852940d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 2 Apr 2019 23:04:16 +0200 Subject: [PATCH] Update benchmark.sh --- functions/benchmark.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/functions/benchmark.sh b/functions/benchmark.sh index 568a48a..2eb0b87 100644 --- a/functions/benchmark.sh +++ b/functions/benchmark.sh @@ -8,18 +8,22 @@ kuberhost="node1:32764" WRK_INSTALLED=$(which wrk) if [[ "$WRK_INSTALLED" -eq "" ]] then - apt update - apt install -y wrk + sudo apt-get install build-essential libssl-dev git -y + git clone https://github.com/wg/wrk.git wrk + cd wrk + make + # move the executable to somewhere in your PATH, ex: + sudo cp wrk /usr/local/bin fi HEY_INSTALLED=$(which hey) if [[ "$HEY_INSTALLED" -eq "" ]] then apt update - apt install -y golang - go get -u github.com/rakyll/hey - export GOPATH=$HOME/go - export PATH=$PATH:$GOPATH/bin + apt install -y golang + go get -u github.com/rakyll/hey + export GOPATH=$HOME/go + export PATH=$PATH:$GOPATH/bin fi for function in "${functions[@]}"