Logging performance and memory benchmarks to git notes during precommit testing.

This commit is contained in:
Ruben Ayrapetyan
2014-08-14 17:25:20 +04:00
parent e25b1d0249
commit 5ebc744511
5 changed files with 54 additions and 13 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ ITERS=$1
ENGINE=$2
BENCHMARK=$3
( ( for i in `seq 0 1 $ITERS`; do time "$ENGINE" "$BENCHMARK"; done ) 2>&1 ) | grep user | sed 's/[ms]/ /g' | awk '{ s += $2 * 60 + $3; n += 1; } END { print s / n; }'
( ( for i in `seq 1 1 $ITERS`; do time "$ENGINE" "$BENCHMARK"; done ) 2>&1 ) | grep user | sed 's/user[ \t]*\([0-9]*\)m\([0-9.]*\)s/\1 \2/g' | awk '{ s += $1 * 60 + $2; n += 1; } END { print s / n; }'