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