| Matthias Andreas Benkard | dd6ae53 | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | #go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out |
| 2 | |||||
| 3 | go test -c | ||||
| 4 | ./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany | ||||
| 5 | ./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly | ||||
| 6 | |||||
| 7 | #go tool pprof go-restful.test tmp.prof | ||||
| 8 | go tool pprof go-restful.test curly.prof | ||||
| 9 | |||||
| 10 | |||||