Update benchmark.sh
This commit is contained in:
parent
f7da12e094
commit
d34d09e196
@ -8,18 +8,22 @@ kuberhost="node1:32764"
|
|||||||
WRK_INSTALLED=$(which wrk)
|
WRK_INSTALLED=$(which wrk)
|
||||||
if [[ "$WRK_INSTALLED" -eq "" ]]
|
if [[ "$WRK_INSTALLED" -eq "" ]]
|
||||||
then
|
then
|
||||||
apt update
|
sudo apt-get install build-essential libssl-dev git -y
|
||||||
apt install -y wrk
|
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
|
fi
|
||||||
|
|
||||||
HEY_INSTALLED=$(which hey)
|
HEY_INSTALLED=$(which hey)
|
||||||
if [[ "$HEY_INSTALLED" -eq "" ]]
|
if [[ "$HEY_INSTALLED" -eq "" ]]
|
||||||
then
|
then
|
||||||
apt update
|
apt update
|
||||||
apt install -y golang
|
apt install -y golang
|
||||||
go get -u github.com/rakyll/hey
|
go get -u github.com/rakyll/hey
|
||||||
export GOPATH=$HOME/go
|
export GOPATH=$HOME/go
|
||||||
export PATH=$PATH:$GOPATH/bin
|
export PATH=$PATH:$GOPATH/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for function in "${functions[@]}"
|
for function in "${functions[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user