We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c37861b commit 7dd42e2Copy full SHA for 7dd42e2
1 file changed
benches/workloads.rs
@@ -46,6 +46,8 @@ const CAPACITY: usize = 4096;
46
const UNIVERSE: u64 = 16_384;
47
const OPS: usize = 200_000;
48
const SEED: u64 = 42;
49
+/// Read-through probability used by the operation model (1.0 = always read-through).
50
+const READ_THROUGH_RATIO: f64 = 1.0;
51
52
fn make_generator(workload: Workload) -> WorkloadGenerator {
53
WorkloadSpec {
@@ -90,7 +92,7 @@ fn bench_hit_rates(c: &mut Criterion) {
90
92
for _ in 0..iters {
91
93
let mut cache = make_cache(CAPACITY);
94
let mut generator = make_generator(wl);
- let mut op_model = ReadThrough::new(1.0, SEED);
95
+ let mut op_model = ReadThrough::new(READ_THROUGH_RATIO, SEED);
96
let start = Instant::now();
97
let _ = run_operations(
98
&mut cache,
0 commit comments