Lines Matching full:benchmark
8 #include "benchmark/benchmark.h"
18 const auto start = benchmark::ChronoClockNow(); in MyBusySpinwait()
21 const auto now = benchmark::ChronoClockNow(); in MyBusySpinwait()
37 void BM_MainThread(benchmark::State& state) { in BM_MainThread()
43 benchmark::Counter{1, benchmark::Counter::kIsRate}; in BM_MainThread()
46 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1);
47 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->UseRealTime();
48 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->UseManualTime();
49 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(1)->MeasureProcessCPUTime();
50 BENCHMARK(BM_MainThread)
55 BENCHMARK(BM_MainThread)
61 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2);
62 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->UseRealTime();
63 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->UseManualTime();
64 BENCHMARK(BM_MainThread)->Iterations(1)->Threads(2)->MeasureProcessCPUTime();
65 BENCHMARK(BM_MainThread)
70 BENCHMARK(BM_MainThread)
79 void BM_WorkerThread(benchmark::State& state) { in BM_WorkerThread()
86 benchmark::Counter{1, benchmark::Counter::kIsRate}; in BM_WorkerThread()
89 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(1);
90 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(1)->UseRealTime();
91 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(1)->UseManualTime();
92 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(1)->MeasureProcessCPUTime();
93 BENCHMARK(BM_WorkerThread)
98 BENCHMARK(BM_WorkerThread)
104 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(2);
105 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(2)->UseRealTime();
106 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(2)->UseManualTime();
107 BENCHMARK(BM_WorkerThread)->Iterations(1)->Threads(2)->MeasureProcessCPUTime();
108 BENCHMARK(BM_WorkerThread)
113 BENCHMARK(BM_WorkerThread)
122 void BM_MainThreadAndWorkerThread(benchmark::State& state) { in BM_MainThreadAndWorkerThread()
130 benchmark::Counter{1, benchmark::Counter::kIsRate}; in BM_MainThreadAndWorkerThread()
133 BENCHMARK(BM_MainThreadAndWorkerThread)->Iterations(1)->Threads(1);
134 BENCHMARK(BM_MainThreadAndWorkerThread)
138 BENCHMARK(BM_MainThreadAndWorkerThread)
142 BENCHMARK(BM_MainThreadAndWorkerThread)
146 BENCHMARK(BM_MainThreadAndWorkerThread)
151 BENCHMARK(BM_MainThreadAndWorkerThread)
157 BENCHMARK(BM_MainThreadAndWorkerThread)->Iterations(1)->Threads(2);
158 BENCHMARK(BM_MainThreadAndWorkerThread)
162 BENCHMARK(BM_MainThreadAndWorkerThread)
166 BENCHMARK(BM_MainThreadAndWorkerThread)
170 BENCHMARK(BM_MainThreadAndWorkerThread)
175 BENCHMARK(BM_MainThreadAndWorkerThread)