Home | History | Annotate | Download | only in test

Lines Matching refs:state

15 void BM_empty(benchmark::State& state) {
16 while (state.KeepRunning()) {
17 volatile std::size_t x = state.iterations();
25 void BM_old_arg_range_interface(benchmark::State& state) {
26 assert((state.range(0) == 1 && state.range(1) == 2) ||
27 (state.range(0) == 5 && state.range(1) == 6));
28 while (state.KeepRunning()) {
34 void BM_template2(benchmark::State& state) {
35 BM_empty(state);
40 void BM_template1(benchmark::State& state) {
41 BM_empty(state);
50 BENCHMARK_TEMPLATE_F(BM_Fixture, BM_template1, long)(benchmark::State& state) {
51 BM_empty(state);
53 BENCHMARK_TEMPLATE1_F(BM_Fixture, BM_template2, int)(benchmark::State& state) {
54 BM_empty(state);
57 void BM_counters(benchmark::State& state) {
58 BM_empty(state);
59 state.counters["Foo"] = 2;