From 390333bb314f6cb25adc5716ea383112860ed342 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 8 Aug 2020 13:01:36 +0100 Subject: add parallelquick and so on --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3