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

pull/3558/head
Behdad Esfahbod 3 years ago
parent 68a9b83d15
commit ae9c7b861b
  1. 2
      perf/benchmark-set.cc

@ -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…
Cancel
Save