aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/main.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-30 12:01:56 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-30 12:01:56 -0600
commit09914968baa1435525dc81b78ffa602ab087e983 (patch)
tree682ce04dd86fdfe06f1cb0fc2b084c56c7bdaded /cmd/bolt/main.go
parentMerge pull request #145 from benbjohnson/tx-cursor (diff)
parentMerge branch 'bench-batch' into moar_bench (diff)
downloaddedo-09914968baa1435525dc81b78ffa602ab087e983.tar.gz
dedo-09914968baa1435525dc81b78ffa602ab087e983.tar.xz
Merge pull request #146 from benbjohnson/bench-batch
Add --batch-size to 'bolt bench'
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r--cmd/bolt/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go
index 719bf00..cb2d47a 100644
--- a/cmd/bolt/main.go
+++ b/cmd/bolt/main.go
@@ -98,6 +98,7 @@ func NewApp() *cli.App {
&cli.StringFlag{Name: "write-mode", Value: "seq", Usage: "Write mode"},
&cli.StringFlag{Name: "read-mode", Value: "seq", Usage: "Read mode"},
&cli.IntFlag{Name: "count", Value: 1000, Usage: "Item count"},
+ &cli.IntFlag{Name: "batch-size", Usage: "Write batch size"},
&cli.IntFlag{Name: "key-size", Value: 8, Usage: "Key size"},
&cli.IntFlag{Name: "value-size", Value: 32, Usage: "Value size"},
&cli.StringFlag{Name: "cpuprofile", Usage: "CPU profile output path"},
@@ -110,6 +111,7 @@ func NewApp() *cli.App {
WriteMode: c.String("write-mode"),
ReadMode: c.String("read-mode"),
Iterations: c.Int("count"),
+ BatchSize: c.Int("batch-size"),
KeySize: c.Int("key-size"),
ValueSize: c.Int("value-size"),
CPUProfile: c.String("cpuprofile"),