Skip to content

Commit 1efff0b

Browse files
authored
correct the variable in universal_benchmark.cc
1 parent 512e257 commit 1efff0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/universal-benchmark/universal_benchmark.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ int main(int argc, char **argv) {
267267
// upserts to get an upper bound on how many elements we'll be
268268
// inserting.
269269
const size_t max_insert_ops =
270-
(total_ops + 99) / 100 * (g_insert_percentage + g_erase_percentage);
270+
(total_ops + 99) / 100 * (g_insert_percentage + g_upsert_percentage);
271271
const size_t insert_keys =
272272
std::max(initial_capacity, max_insert_ops) + prefill_elems;
273273
// Round this quantity up to a power of 2, so that we can use an LCG to

0 commit comments

Comments
 (0)