mirror of https://github.com/gobwas/glob.git
tune script
This commit is contained in:
parent
803c985a9a
commit
d8ec0fa85c
2
bench.sh
2
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"
|
||||
|
|
Loading…
Reference in New Issue