benchmarks/binary_relation_bench.cpp
// All tests are discriminated by the size of the label alphabet as it is the
// most  influential parameter.
All tests are discriminated by the size of the label alphabet as it is the
most  influential parameter.
All tests are discriminated by the size of the label alphabet as it is the most influential parameter .
static void bm_rank(benchmark::State& state) {
  const auto br = gen_binary_relation(1'000'000,
                                      object_id(100'000),
                                      label_id(state.range(0)));
  while (state.KeepRunning()) {
    auto const max_object = gen_object(br);
    auto const max_label = gen_label(br);
    DoNotOptimize(br.rank(max_object, max_label));
  }
}
static void bm_rank ( benchmark :: State & state ) { const auto br = gen_binary_relation ( 1'000'000 , object_id ( 100'000 ) , label_id ( state . range ( 0 ) ) ) ; while ( state . KeepRunning ( ) ) { auto const max_object = gen_object ( br ) ; auto const max_label = gen_label ( br ) ; DoNotOptimize ( br . rank ( max_object , max_label ) ) ; } }
All tests are discriminated by the size of the label alphabet as it is the
most  influential parameter.
All tests are discriminated by the size of the label alphabet as it is the most influential parameter .
/*max_size=*/ /*max_object=*/ /*max_label=*/