summaryrefslogtreecommitdiff
path: root/Makefile
blob: fab5d529ace2bf081d42f9d37edfd6f7e331bcc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
test:
	go clean -testcache
	go test ./... -v
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
searchbench:
	go test -run=xxx -bench=. ./search | tee searchbench.out
profile:
	go test -run=xxx -bench=BenchmarkQuickSort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out
	go tool pprof cpuprofile.out