From b13ce2b5cdcd9fcd480473f42c608bf47740e1f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 17 Jan 2020 00:54:38 +0100 Subject: [PATCH] allow pref --- scripts/benchmark.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 9aeeeab2..55d8ccbc 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -9,8 +9,8 @@ plot_script="scripts/bench.plot" run() { echo "$1 $3 $2" >&2 echo "perf stat -r$repeats $1 $test_dir/$3.$2" - sudo echo -1 > /proc/sys/kernel/perf_event_paranoid - perf stat $1 $test_dir/$3.$2 >&2 +# sudo echo -1 > /proc/sys/kernel/perf_event_paranoid + sudo perf stat $1 $test_dir/$3.$2 >&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/' } -- 2.43.0