Lines Matching full:benchmark
2 #include "benchmark/benchmark.h"
4 #define BASIC_BENCHMARK_TEST(x) BENCHMARK(x)->Arg(8)->Arg(512)->Arg(8192)
6 void BM_empty(benchmark::State& state) { in BM_empty()
8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
11 BENCHMARK(BM_empty);
12 BENCHMARK(BM_empty)->ThreadPerCpu();
14 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
24 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
30 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
37 void BM_spin_pause_during(benchmark::State& state) { in BM_spin_pause_during()
41 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
45 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
52 void BM_pause_during(benchmark::State& state) { in BM_pause_during()
58 BENCHMARK(BM_pause_during);
59 BENCHMARK(BM_pause_during)->ThreadPerCpu();
60 BENCHMARK(BM_pause_during)->UseRealTime();
61 BENCHMARK(BM_pause_during)->UseRealTime()->ThreadPerCpu();
63 void BM_spin_pause_after(benchmark::State& state) { in BM_spin_pause_after()
66 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
70 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
76 void BM_spin_pause_before_and_after(benchmark::State& state) { in BM_spin_pause_before_and_after()
78 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
82 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
86 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
92 void BM_empty_stop_start(benchmark::State& state) { in BM_empty_stop_start()
96 BENCHMARK(BM_empty_stop_start);
97 BENCHMARK(BM_empty_stop_start)->ThreadPerCpu();
99 void BM_KeepRunning(benchmark::State& state) { in BM_KeepRunning()
100 benchmark::IterationCount iter_count = 0; in BM_KeepRunning()
107 BENCHMARK(BM_KeepRunning);
109 void BM_KeepRunningBatch(benchmark::State& state) { in BM_KeepRunningBatch()
114 const benchmark::IterationCount batch_size = 1009; in BM_KeepRunningBatch()
116 static benchmark::IterationCount prior_iter_count = 0; in BM_KeepRunningBatch()
117 benchmark::IterationCount iter_count = 0; in BM_KeepRunningBatch()
133 BENCHMARK(BM_KeepRunningBatch)->Repetitions(1);
135 void BM_RangedFor(benchmark::State& state) { in BM_RangedFor()
136 benchmark::IterationCount iter_count = 0; in BM_RangedFor()
142 BENCHMARK(BM_RangedFor);
146 void BM_OneTemplateFunc(benchmark::State& state) { in BM_OneTemplateFunc()
153 BENCHMARK(BM_OneTemplateFunc<int>)->Arg(1);
154 BENCHMARK(BM_OneTemplateFunc<double>)->Arg(1);
157 void BM_TwoTemplateFunc(benchmark::State& state) { in BM_TwoTemplateFunc()
166 BENCHMARK(BM_TwoTemplateFunc<int, double>)->Arg(1);
167 BENCHMARK(BM_TwoTemplateFunc<double, int>)->Arg(1);
175 benchmark::State::StateIterator>::value_type,
176 typename benchmark::State::StateIterator::value_type>::value,