mirror of
https://github.com/gomods/athens
synced 2026-02-11 08:08:08 +00:00
10 lines
251 B
Makefile
10 lines
251 B
Makefile
.PHONY: benchmark.txt
|
|
|
|
benchmark.txt:
|
|
go test -test.run='^$$' -test.bench='.*' -test.benchmem > $@ 2>&1
|
|
cat $@
|
|
|
|
profile:
|
|
go test -test.run='^$$' -test.bench='.*' -test.cpuprofile=/tmp/annotate.prof
|
|
go tool pprof ./annotate.test /tmp/annotate.prof
|