summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cf5cf2c..1236312 100644
--- a/Makefile
+++ b/Makefile
@@ -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