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
|
go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem
|
||||||
echo "OK"
|
echo "OK"
|
||||||
git checkout ${backup}
|
git checkout ${backup}
|
||||||
|
sleep 5
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +21,6 @@ to=$1
|
||||||
current=`git rev-parse --abbrev-ref HEAD`
|
current=`git rev-parse --abbrev-ref HEAD`
|
||||||
|
|
||||||
bench ${to} $2
|
bench ${to} $2
|
||||||
sleep 5
|
|
||||||
bench ${current} $2
|
bench ${current} $2
|
||||||
|
|
||||||
benchcmp $3 "/tmp/${to}-$2.bench" "/tmp/${current}-$2.bench"
|
benchcmp $3 "/tmp/${to}-$2.bench" "/tmp/${current}-$2.bench"
|
||||||
|
|
Loading…
Reference in New Issue