From 50c2dcb78ff8701c57bb62303d6a38c1e2b96622 Mon Sep 17 00:00:00 2001 From: Feng Zhu Date: Mon, 21 Jul 2014 12:01:40 -0700 Subject: [PATCH] add options.block_restart_interval in db_bench Summary: Add block_restart_interval in db_bench, default value 16 Test Plan: make Reviewers: sdong Reviewed By: sdong Differential Revision: https://reviews.facebook.net/D20331 --- db/db_bench.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/db_bench.cc b/db/db_bench.cc index 86f6c640f..d4811cb40 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -242,6 +242,10 @@ DEFINE_int64(cache_size, -1, "Number of bytes to use as a cache of uncompressed" DEFINE_int32(block_size, rocksdb::Options().block_size, "Number of bytes in a block."); +DEFINE_int32(block_restart_interval, rocksdb::Options().block_restart_interval, + "Number of keys between restart points " + "for delta encoding of keys."); + DEFINE_int64(compressed_cache_size, -1, "Number of bytes to use as a cache of compressed data."); @@ -1626,6 +1630,7 @@ class Benchmark { options.max_background_flushes = FLAGS_max_background_flushes; options.compaction_style = FLAGS_compaction_style_e; options.block_size = FLAGS_block_size; + options.block_restart_interval = FLAGS_block_restart_interval; options.filter_policy = filter_policy_; if (FLAGS_prefix_size != 0) { options.prefix_extractor.reset(