summaryrefslogtreecommitdiff
path: root/Makefile
blob: efce3355646e914486fbb1fdf042ae1ca2ccf283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all:
	go build
run:
	go run main.go
test:
	go test ./... -v
bench: sortbench queuebench
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
profile:
	go test -run=xxx -bench=BenchmarkQuickSort ./sort -memprofile memprofile.out -cpuprofile cpuprofile.out
	go tool pprof cpuprofile.out