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

index f3cdbdd05f5f65ed4062f2bcb0e7980e59e34a15..fe65b363747aa07e3f657211541f530db1cfd5b5 100644 (file)
@@ -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/'
 }