Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-05-07 13:57:27 +02:00 committed by GitHub
parent 95d9cf0a22
commit 6b382bedf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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