aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-04 13:02:17 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-03-04 13:23:46 -0700
commit64fcacedfa3e59e9dbb0cc0d2b3de71cae3290df (patch)
tree511db104025c34c4434c50e4367395be2bc806ba /Makefile
parentIgnore multiple transaction commit/rollback/close. (diff)
downloaddedo-64fcacedfa3e59e9dbb0cc0d2b3de71cae3290df.tar.gz
dedo-64fcacedfa3e59e9dbb0cc0d2b3de71cae3290df.tar.xz
Add benchmarks.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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