Lines Matching refs:state
51 void SetUp(::benchmark::State &state) override { in SetUp() argument
66 SetProperty(std::string() + PROPERTY_PREFIX + "config.dynamic", getDynamicConfig(state)); in SetUp()
82 std::string getDynamicConfig(const ::benchmark::State &state) const { in getDynamicConfig()
83 return std::to_string(state.range(0)); in getDynamicConfig()
86 auto getOtherArg(const ::benchmark::State &state, std::size_t index) const { in getOtherArg() argument
87 return state.range(index + 1); in getOtherArg()
98 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test) \
105 for (auto _ : state) {
111 for (auto _ : state) {
119 for (auto _ : state) {
125 for (auto _ : state) {
131 for (auto _ : state) {
139 for (auto _ : state) {
158 auto getEffect(const ::benchmark::State &state) const { in getEffect()
159 return static_cast<Effect>(getOtherArg(state, 0)); in getEffect()
162 auto getStrength(const ::benchmark::State &state) const { in getStrength()
163 return static_cast<EffectStrength>(getOtherArg(state, 1)); in getStrength()
168 Effect effect = getEffect(state);
169 EffectStrength strength = getStrength(state);
178 for (auto _ : state) {