Lines Matching refs:state
57 void SetUp(::benchmark::State &state) override { in SetUp() argument
72 SetProperty(std::string() + PROPERTY_PREFIX + "config.dynamic", getDynamicConfig(state)); in SetUp()
88 std::string getDynamicConfig(const ::benchmark::State &state) const { in getDynamicConfig()
89 return std::to_string(state.range(0)); in getDynamicConfig()
92 auto getOtherArg(const ::benchmark::State &state, std::size_t index) const { in getOtherArg() argument
93 return state.range(index + 1); in getOtherArg()
104 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test) \
111 for (auto _ : state) {
117 for (auto _ : state) {
123 for (auto _ : state) {
131 for (auto _ : state) {
137 for (auto _ : state) {
143 for (auto _ : state) {
149 for (auto _ : state) {
168 auto getEffect(const ::benchmark::State &state) const { in getEffect()
169 return static_cast<Effect>(getOtherArg(state, 0)); in getEffect()
172 auto getStrength(const ::benchmark::State &state) const { in getStrength()
173 return static_cast<EffectStrength>(getOtherArg(state, 1)); in getStrength()
178 Effect effect = getEffect(state);
179 EffectStrength strength = getStrength(state);
192 for (auto _ : state) {