From fc6d8400d697ebc5682857ee37bed29855afbc77 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Nov 2020 21:31:16 +0000 Subject: bench and test all packages --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index efce335..805c341 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,14 @@ run: go run main.go test: go test ./... -v -bench: sortbench queuebench +bench: + go test -run=xxx -bench=. ./... | tee bench.out sortbench: go test -run=xxx -bench=. ./sort | tee sortbench.out queuebench: go test -run=xxx -bench=. ./queue | tee queuebench.out - go test -run=xxx -bench=. ./queue | tee queuebench.out +setbench: + go test -run=xxx -bench=. ./set | tee setbench.out profile: go test -run=xxx -bench=BenchmarkQuickSort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out go tool pprof cpuprofile.out -- cgit v1.2.3