]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add --seed, --read_range to db_bench
authorMark Callaghan <mdcallag@gmail.com>
Thu, 3 Jan 2013 20:11:50 +0000 (12:11 -0800)
committerMark Callaghan <mdcallag@gmail.com>
Mon, 7 Jan 2013 17:56:10 +0000 (09:56 -0800)
commit4069f66cc791c09213ef6c2e0a2a744c298ddc45
treefb5d5486b67f2da05958b48ad20305f2b326a9a4
parent8cd86a7be5ba03d027f4f9132dc6c031a27a331c
Add --seed, --read_range to db_bench

Summary:
Adds the option --seed to db_bench to specify the base for the per-thread RNG.
When not set each thread uses the same value across runs of db_bench which defeats
IO stress testing.

Adds the option --read_range. When set to a value > 1 an iterator is created and
each query done for the randomread benchmark will do a range scan for that many
rows. When not set or set to 1 the existing behavior (a point lookup) is done.

Fixes a bug where a printf format string was missing.

Test Plan: run db_bench

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb
Differential Revision: https://reviews.facebook.net/D7749
db/db_bench.cc