From: Jérémie Astor Date: Thu, 16 Jan 2020 23:45:55 +0000 (+0100) Subject: test perf X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9b2739b2d4119d63fd044c947f5e12891b7491fb;p=gwion.git test perf --- diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 20f519fb..9b7dda40 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -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/' }