Logging performance and memory benchmarks to git notes during precommit testing.
This commit is contained in:
+1
-1
@@ -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; }'
|
||||
|
||||
Reference in New Issue
Block a user