[benchmark-set] At least increase needle by one in lookup benchmark

This commit is contained in:
Behdad Esfahbod 2022-04-29 13:27:42 -06:00
parent b4236b7de6
commit 68a9b83d15
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static void BM_SetLookup(benchmark::State& state) {
auto needle = max_value / 2;
for (auto _ : state) {
benchmark::DoNotOptimize(
hb_set_has (original, needle));
hb_set_has (original, needle++));
}
hb_set_destroy(original);