aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-18 21:37:45 -0500
committerBen Johnson <benbjohnson@yahoo.com>2014-04-18 22:15:31 -0500
commita42d74da7e6b3162701ae17d59647a6880ccb6bf (patch)
treeb32ca009bfaeae67cc0db5e388ba574b07cfa333 /Makefile
parentmove bench package to bench/cmd/bolt/bench (diff)
downloaddedo-a42d74da7e6b3162701ae17d59647a6880ccb6bf.tar.gz
dedo-a42d74da7e6b3162701ae17d59647a6880ccb6bf.tar.xz
Add 'bolt bench'.
This commit adds a flexible benchmarking tool to the 'bolt' CLI. It allows the user to separately specify the write mode and read mode (e.g. sequential random, etc). It also allows the user to isolate profiling to either the read or the writes. Currently the bench tool only supports "seq" read and write modes. It also does not support streaming of Bolt counters yet. Fixes #95. /cc @snormore
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0ed5996..2c0dc97 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ cpuprofile: fmt
# go get github.com/kisielk/errcheck
errcheck:
@echo "=== errcheck ==="
- @.go/bin/errcheck github.com/boltdb/bolt
+ @errcheck github.com/boltdb/bolt
fmt:
@go fmt ./...
@@ -34,8 +34,7 @@ get:
build: get
@mkdir -p bin
- @go build -ldflags=$(GOLDFLAGS) -a -o bin/bolt-`git rev-parse --short HEAD` ./cmd/bolt
- @echo "writing bin/bolt-`git rev-parse --short HEAD`"
+ @go build -ldflags=$(GOLDFLAGS) -a -o bin/bolt ./cmd/bolt
test: fmt errcheck
@go get github.com/stretchr/testify/assert