• Home
  • Raw
  • Download

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();
100 void BM_KeepRunning(benchmark::State& state) { in BM_KeepRunning()
101 benchmark::IterationCount iter_count = 0; in BM_KeepRunning()
108 BENCHMARK(BM_KeepRunning);
110 void BM_KeepRunningBatch(benchmark::State& state) { in BM_KeepRunningBatch()
112 const benchmark::IterationCount batch_size = 101; in BM_KeepRunningBatch()
113 benchmark::IterationCount iter_count = 0; in BM_KeepRunningBatch()
119 BENCHMARK(BM_KeepRunningBatch);
121 void BM_RangedFor(benchmark::State& state) { in BM_RangedFor()
122 benchmark::IterationCount iter_count = 0; in BM_RangedFor()
128 BENCHMARK(BM_RangedFor);
133 typename std::iterator_traits<benchmark::State::StateIterator>::value_type,
134 typename benchmark::State::StateIterator::value_type>::value, "");