From 64fcacedfa3e59e9dbb0cc0d2b3de71cae3290df Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 4 Mar 2014 13:02:17 -0700 Subject: Add benchmarks. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29ea2f5..4cc71b6 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,10 @@ cover: fmt go tool cover -html=$(COVERPROFILE) rm $(COVERPROFILE) +cpuprofile: fmt + @go test -c + @./bolt.test -test.v -test.run="^X" -test.bench=$(BENCH) -test.cpuprofile cpu.prof + fmt: @go fmt ./... @@ -25,4 +29,4 @@ test: fmt @echo "=== RACE DETECTOR ===" @go test -v -race -test.run=Parallel -.PHONY: bench cloc cover fmt test +.PHONY: bench cloc cover cpuprofile fmt memprofile test -- cgit v1.2.3