From d8ec0fa85c04f69c56982e6517a92dc8d32ea54c Mon Sep 17 00:00:00 2001 From: gobwas Date: Wed, 24 Feb 2016 23:25:01 +0300 Subject: [PATCH] tune script --- bench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"