| 1 |
.PHONY: benchmark.txt |
| 2 |
|
| 3 |
benchmark.txt: |
| 4 |
go test -test.run='^$$' -test.bench='.*' -test.benchmem > $@ 2>&1 |
| 5 |
cat $@ |
| 6 |
|
| 7 |
profile: |
| 8 |
go test -test.run='^$$' -test.bench='.*' -test.cpuprofile=/tmp/annotate.prof |
| 9 |
go tool pprof ./annotate.test /tmp/annotate.prof |