Skip to content

Commit

Permalink
Merge pull request #161 from ya0guang/patch-1
Browse files Browse the repository at this point in the history
correct the variable in universal_benchmark.cc
  • Loading branch information
manugoyal authored Apr 6, 2024
2 parents 512e257 + 1efff0b commit 88bb6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/universal-benchmark/universal_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ int main(int argc, char **argv) {
// upserts to get an upper bound on how many elements we'll be
// inserting.
const size_t max_insert_ops =
(total_ops + 99) / 100 * (g_insert_percentage + g_erase_percentage);
(total_ops + 99) / 100 * (g_insert_percentage + g_upsert_percentage);
const size_t insert_keys =
std::max(initial_capacity, max_insert_ops) + prefill_elems;
// Round this quantity up to a power of 2, so that we can use an LCG to
Expand Down

0 comments on commit 88bb6e2

Please sign in to comment.