summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-24 14:44:34 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-24 14:44:34 +0100
commit24996416c11942abe22b1e3c1dee29243fd55fd1 (patch)
treeb090eb27d9aabe9ff7e61cc3caf79ef6c778d3f0 /Makefile
parent4098a882ca0dfa1f785ecf5800cb1efcbcfe44a4 (diff)
benchmark of pq
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1236312..2a2a4ac 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,11 @@ run:
go run main.go
test:
go test ./... -v
-bench: sortbench
+bench: sortbench queuebench
sortbench:
go test -run=xxx -bench=. ./sort | tee sortbench.out
+queuebench:
+ go test -run=xxx -bench=. ./queue | tee queuebench.out
profile:
go test -run=xxx -bench=BenchmarkQuickSort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out
go tool pprof cpuprofile.out