Hi I am trying to set the following Google Benchmark fixture property in the class. But it seems like the property is not getting set correctly. Ex:
class Foo : public benchmark::Fixture {
Foo(){
this->Iterations(10);
}
// or
void SetUp(benchmark::State& state) override {
this->Iterations(10);
}
}
Both didn't seem to be working. But The following works without a problem.
class Foo : public benchmark::Fixture {
...
}
BENCHMARK_DEFINE_F(Foo, foo_run)(benchmark::State& st) {
...
}
BENCHMARK_REGISTER_F(Foo, foo_run)->Iterations(10);
What could be the issue here? Does the macro override my values with default values?