]> Nishi Git Mirror - gwion.git/commitdiff
test perf
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 16 Jan 2020 23:45:55 +0000 (00:45 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Thu, 16 Jan 2020 23:45:55 +0000 (00:45 +0100)
scripts/benchmark.sh

index 20f519fb122c817c291963c24a7cdef89d4d8eb1..9b7dda40b21870bba9e41945ddddd9f31f1cf888 100644 (file)
@@ -9,6 +9,7 @@ plot_script="scripts/bench.plot"
 run() {
   echo "$1 $3 $2" >&2
   echo "perf stat -r$repeats $1 $test_dir/$3.$2"
+  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/'
 }