From 6b382bedf94802d0ae5f1b057bfed4ff3d5fa9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 7 May 2019 13:57:27 +0200 Subject: [PATCH] Update benchmark.sh --- benchmark/benchmark.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/benchmark.sh b/benchmark/benchmark.sh index a40f0c1..d6c87a4 100644 --- a/benchmark/benchmark.sh +++ b/benchmark/benchmark.sh @@ -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