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

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