From 65f3bb75ddfe8dafa4e70658d7cc776935ec8861 Mon Sep 17 00:00:00 2001 From: Mickey Rose Date: Wed, 11 Jul 2018 15:10:00 +0200 Subject: [PATCH] Revert "benchmark - slightly better stderr" This partially reverts commit 5ab6db26079c5b51bc920392eb3a75b4242a2347. The change of argument --threads N doesn't just change output, it changes the mode of operation. With --threads 0, the benchmark runs wholly in the main thread. With --threads 1, it starts 1 worker thread, which does the work, and the main thread measures how long it takes to complete. --- benchmark/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/run b/benchmark/run index 2d4089371..a750471e3 100755 --- a/benchmark/run +++ b/benchmark/run @@ -10,7 +10,7 @@ function run { local threads="$2" local iters="$3" shift 3 - $runner --threads 1 --iterations $iters "$@" + $runner --threads 0 --iterations $iters "$@" if test $threads -gt 0; then $runner --threads $threads --iterations $((iters/threads)) "$@" fi