mirror of https://github.com/gobwas/glob.git
tune
This commit is contained in:
parent
34494ea116
commit
72f082815c
4
bench.sh
4
bench.sh
|
@ -7,11 +7,11 @@ bench() {
|
||||||
echo "Already exists ${filename}"
|
echo "Already exists ${filename}"
|
||||||
else
|
else
|
||||||
backup=`git rev-parse --abbrev-ref HEAD`
|
backup=`git rev-parse --abbrev-ref HEAD`
|
||||||
git checkout $1 &>/dev/null
|
git checkout $1
|
||||||
echo -n "Creating ${filename}... "
|
echo -n "Creating ${filename}... "
|
||||||
go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem
|
go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem
|
||||||
echo "OK"
|
echo "OK"
|
||||||
git checkout ${backup} &>/dev/null
|
git checkout ${backup}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue