tune script

This commit is contained in:
gobwas 2016-02-24 23:25:01 +03:00
parent 803c985a9a
commit d8ec0fa85c
1 changed files with 1 additions and 1 deletions

View File

@ -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"