[benchmark-set] At least increase needle by one in lookup benchmark
This commit is contained in:
parent
68a9b83d15
commit
ae9c7b861b
|
@ -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++ % max_value));
|
||||
}
|
||||
|
||||
hb_set_destroy(original);
|
||||
|
|
Loading…
Reference in New Issue