diff options
| author | Paul Buetow <git@mx.buetow.org> | 2020-11-10 21:31:16 +0000 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2020-11-10 21:31:16 +0000 |
| commit | fc6d8400d697ebc5682857ee37bed29855afbc77 (patch) | |
| tree | 6e231d3528caff8332f5027b3d232e20b571583c | |
| parent | 1db60ee0c7c7a6d8a5247bbca775c134645b771c (diff) | |
bench and test all packages
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
