We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c411b6 commit 80498a2Copy full SHA for 80498a2
Makefile
@@ -30,3 +30,18 @@ coveralls: coverage
30
bench:
31
go clean -testcache
32
go test -bench=. -benchmem -benchtime=1s
33
+
34
+.PHONY: ab-perf
35
+ab-perf:
36
+ export TNT_CUR_BRANCH=$(git branch --show-current)
37
+ go clean -testcache
38
+ go test -bench=. -benchmem -benchtime=1s > b.txt
39
+ git stash && git fetch && git checkout master
40
41
+ go test -bench=. -benchmem -benchtime=1s > a.txt
42
+ go get golang.org/x/tools/cmd/benchcmp
43
+ benchcmp a.txt b.txt
44
+ echo ${TNT_CUR_BRANCH}
45
+ git checkout ${TNT_CUR_BRANCH}
46
+ git stash pop
47
+ unset TNT_CUR_BRANCH
0 commit comments