#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 (CommandList children: [ (C {(go)} {(test)} {(-c)}) (C {(./go-restful.test)} {(-test.run) (Lit_Other "=") (none)} {(-test.cpuprofile) (Lit_Other "=") (tmp.prof)} {(-test.bench) (Lit_Other "=") (BenchmarkMany)} ) (C {(./go-restful.test)} {(-test.run) (Lit_Other "=") (none)} {(-test.cpuprofile) (Lit_Other "=") (curly.prof)} {(-test.bench) (Lit_Other "=") (BenchmarkManyCurly)} ) (C {(go)} {(tool)} {(pprof)} {(go-restful.test)} {(curly.prof)}) ] )