Skip to content

Commit 5b4ec2a

Browse files
igchorvinser52
authored andcommitted
Enable touchValue by default
1 parent 41f8425 commit 5b4ec2a

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
@@ -113,7 +113,7 @@ class Cache {
113113
explicit Cache(const CacheConfig& config,
114114
ChainedItemMovingSync movingSync = {},
115115
std::string cacheDir = "",
116-
bool touchValue = false);
116+
bool touchValue = true);
117117

118118
~Cache();
119119

@@ -428,7 +428,7 @@ class Cache {
428428
std::unique_ptr<ValueTracker> valueTracker_;
429429

430430
// read entire value on find.
431-
bool touchValue_{false};
431+
bool touchValue_{true};
432432

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

cachelib/cachebench/util/Config.h

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

203203
// If enabled, each value will be read on find. This is useful for measuring
204204
// performance of value access.
205-
bool touchValue{false};
205+
bool touchValue{true};
206206

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

0 commit comments

Comments
 (0)