Update benchmark.sh

This commit is contained in:
2019-05-07 13:57:27 +02:00
committed by GitHub
parent 95d9cf0a22
commit 6b382bedf9

View File

@ -23,7 +23,8 @@ then
apt install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git wrk
cd wrk || exit
make
cores=$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l)
make -j $((cores + 1))
cp wrk /usr/local/bin
fi