summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-08-06 11:30:09 +0100
committerPaul Buetow <paul@buetow.org>2020-08-06 11:30:09 +0100
commitd4c15be3268ee675b0d5853a8ffdb6c4c92585e7 (patch)
tree4cd334e70c3ee14d9b441c988a88fb78aa1efd84 /Makefile
parentf8cd759c94be1f0daeba46940fac0ca3d4201388 (diff)
add profiling example
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a2c6657..24dd61f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,3 +6,6 @@ test:
go test ./... -v
bench:
go test -run=10 -bench=. ./... -v
+profile:
+ go test -bench=QuickSort ./sort -memprofile memprofile.out -cpuprofile profile.out
+ go tool pprof profile.out