]> Nishi Git Mirror - gwion.git/commitdiff
allow pref
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 17 Jan 2020 00:12:41 +0000 (01:12 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 17 Jan 2020 00:12:41 +0000 (01:12 +0100)
scripts/benchmark.sh

index 55d8ccbc5638d7de5554f5548f0f83aafd9db3a0..92bcc65089b1f7df13b71c82a84e760c39acbb12 100644 (file)
@@ -10,8 +10,7 @@ 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
-  sudo perf stat $1 $test_dir/$3.$2 >&2
-  perf stat -r"$repeats" "$1" "$test_dir/$3.$2" 2>&1 | grep "time elapsed" |
+  sudo 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/'
 }