Skip to content

Commit 21c2e31

Browse files
committed
Enable touchValue by default
1 parent 98a2fde commit 21c2e31

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
@@ -68,7 +68,7 @@ class Cache {
6868
explicit Cache(const CacheConfig& config,
6969
ChainedItemMovingSync movingSync = {},
7070
std::string cacheDir = "",
71-
bool touchValue = false);
71+
bool touchValue = true);
7272

7373
~Cache();
7474

@@ -359,7 +359,7 @@ class Cache {
359359
std::unique_ptr<ValueTracker> valueTracker_;
360360

361361
// read entire value on find.
362-
bool touchValue_{false};
362+
bool touchValue_{true};
363363

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

cachelib/cachebench/util/Config.h

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

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

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

0 commit comments

Comments
 (0)