From: Jérémie Astor Date: Fri, 17 Jan 2020 00:28:14 +0000 (+0100) Subject: allow pref X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b01df50529fb865667bc766181b509508c2b9a7e;p=gwion.git allow pref --- diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index f3cdbdd0..fe65b363 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -10,6 +10,7 @@ run() { echo "$1 $3 $2" >&2 echo "perf stat -r$repeats $1 $test_dir/$3.$2" echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid + perf stat "$1" "$test_dir/$3.$2" perf stat -r"$repeats" "$1" "$test_dir/$3.$2" 2>&1 | grep "time elapsed" | sed 's/ *\([0-9]*\),\([0-9]*\) .* seconds time elapsed *( +- *\([0-9]*\),\([0-9]*\)% )/\1.\2 \3.\4/' }