aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/bench.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-05-15 14:25:29 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-05-15 14:25:29 -0600
commitcc6302194b6134806669cbeafcaf799fa0ea040c (patch)
tree7ca8faaae8099222c0c7964eee3e0a95dea5bd51 /cmd/bolt/bench.go
parentMerge pull request #165 from benbjohnson/strict-mode (diff)
parentChange verbiage, fix node test. (diff)
downloaddedo-cc6302194b6134806669cbeafcaf799fa0ea040c.tar.gz
dedo-cc6302194b6134806669cbeafcaf799fa0ea040c.tar.xz
Merge pull request #166 from benbjohnson/fill-percent
Add option to adjust fill percentage.
Diffstat (limited to 'cmd/bolt/bench.go')
-rw-r--r--cmd/bolt/bench.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bolt/bench.go b/cmd/bolt/bench.go
index e8bf376..6379144 100644
--- a/cmd/bolt/bench.go
+++ b/cmd/bolt/bench.go
@@ -46,6 +46,7 @@ func Bench(options *BenchOptions) {
fatal(err)
return
}
+ db.FillPercent = options.FillPercent
defer db.Close()
// Enable streaming stats.
@@ -280,6 +281,7 @@ type BenchOptions struct {
MemProfile string
BlockProfile string
StatsInterval time.Duration
+ FillPercent float64
Clean bool
}