Skip to content

Commit b6c5044

Browse files
igchorguptask
authored andcommitted
Enable touchValue by default
1 parent 1a0fbe6 commit b6c5044

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cachelib/cachebench/cache/Cache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Cache {
6969
explicit Cache(const CacheConfig& config,
7070
ChainedItemMovingSync movingSync = {},
7171
std::string cacheDir = "",
72-
bool touchValue = false);
72+
bool touchValue = true);
7373

7474
~Cache();
7575

@@ -372,7 +372,7 @@ class Cache {
372372
std::unique_ptr<ValueTracker> valueTracker_;
373373

374374
// read entire value on find.
375-
bool touchValue_{false};
375+
bool touchValue_{true};
376376

377377
// reading of the nand bytes written for the benchmark if enabled.
378378
const uint64_t nandBytesBegin_{0};

cachelib/cachebench/util/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct StressorConfig : public JSONConfig {
198198

199199
// If enabled, each value will be read on find. This is useful for measuring
200200
// performance of value access.
201-
bool touchValue{false};
201+
bool touchValue{true};
202202

203203
uint64_t numOps{0}; // operation per thread
204204
uint64_t numThreads{0}; // number of threads that will run

0 commit comments

Comments
 (0)