diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,8 +4,9 @@ run: go run main.go test: go test ./... -v -bench: - go test -run=xxx -bench=. ./... -v +bench: sortbench +sortbench: + go test -run=xxx -bench=. ./sort | tee sortbench.out profile: - go test -run=xxx -bench=Quick2Sort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out + go test -run=xxx -bench=BenchmarkQuickSort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out go tool pprof cpuprofile.out |
