Update benchmark.sh
This commit is contained in:
parent
95d9cf0a22
commit
6b382bedf9
@ -23,7 +23,8 @@ then
|
|||||||
apt install build-essential libssl-dev git -y
|
apt install build-essential libssl-dev git -y
|
||||||
git clone https://github.com/wg/wrk.git wrk
|
git clone https://github.com/wg/wrk.git wrk
|
||||||
cd wrk || exit
|
cd wrk || exit
|
||||||
make
|
cores=$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l)
|
||||||
|
make -j $((cores + 1))
|
||||||
cp wrk /usr/local/bin
|
cp wrk /usr/local/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user