diff --git a/bench.sh b/bench.sh index e033d89..804cf22 100755 --- a/bench.sh +++ b/bench.sh @@ -12,6 +12,7 @@ bench() { go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem echo "OK" git checkout ${backup} + sleep 5 fi } @@ -20,7 +21,6 @@ to=$1 current=`git rev-parse --abbrev-ref HEAD` bench ${to} $2 -sleep 5 bench ${current} $2 benchcmp $3 "/tmp/${to}-$2.bench" "/tmp/${current}-$2.bench"