File: bench_test.sh

package info (click to toggle)
golang-github-emicklei-go-restful 2.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 584 kB
  • sloc: makefile: 10; sh: 6
file content (10 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out

go test -c
./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany
./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly

#go tool pprof go-restful.test tmp.prof
go tool pprof go-restful.test curly.prof