Lines Matching refs:state
11 void BM_basic(benchmark::State& state) {
12 for (auto _ : state) {
16 void BM_basic_slow(benchmark::State& state) {
17 std::chrono::milliseconds sleep_duration(state.range(0));
18 for (auto _ : state) {
61 void BM_explicit_iteration_count(benchmark::State& state) {
69 assert(state.max_iterations == 42);
70 for (auto _ : state) {
72 assert(state.iterations() == state.max_iterations);
73 assert(state.iterations() == 42);