diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-15 14:25:29 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-15 14:25:29 -0600 |
commit | cc6302194b6134806669cbeafcaf799fa0ea040c (patch) | |
tree | 7ca8faaae8099222c0c7964eee3e0a95dea5bd51 /cmd/bolt/bench.go | |
parent | Merge pull request #165 from benbjohnson/strict-mode (diff) | |
parent | Change verbiage, fix node test. (diff) | |
download | dedo-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.go | 2 |
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 } |