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