bench_test.sh 353 B

12345678910
  1. #go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out
  2. go test -c
  3. ./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany
  4. ./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly
  5. #go tool pprof go-restful.test tmp.prof
  6. go tool pprof go-restful.test curly.prof