• Home
  • Raw
  • Download

Lines Matching full:benchmark

19 #include "benchmark/benchmark.h"
28 void FreeFunction() { benchmark::DoNotOptimize(dummy); } in FreeFunction()
31 void operator()() const { benchmark::DoNotOptimize(dummy); } in operator ()()
35 void operator()() const { benchmark::DoNotOptimize(this); } in operator ()()
45 void ConstructAndCallFunctionBenchmark(benchmark::State& state, in ConstructAndCallFunctionBenchmark()
52 void BM_TrivialStdFunction(benchmark::State& state) { in BM_TrivialStdFunction()
56 BENCHMARK(BM_TrivialStdFunction);
58 void BM_TrivialFunctionRef(benchmark::State& state) { in BM_TrivialFunctionRef()
62 BENCHMARK(BM_TrivialFunctionRef);
64 void BM_LargeStdFunction(benchmark::State& state) { in BM_LargeStdFunction()
68 BENCHMARK(BM_LargeStdFunction);
70 void BM_LargeFunctionRef(benchmark::State& state) { in BM_LargeFunctionRef()
73 BENCHMARK(BM_LargeFunctionRef);
75 void BM_FunPtrStdFunction(benchmark::State& state) { in BM_FunPtrStdFunction()
78 BENCHMARK(BM_FunPtrStdFunction);
80 void BM_FunPtrFunctionRef(benchmark::State& state) { in BM_FunPtrFunctionRef()
83 BENCHMARK(BM_FunPtrFunctionRef);
87 void CallFunctionBenchmark(benchmark::State& state, const Callable& c, in CallFunctionBenchmark()
91 benchmark::DoNotOptimize(&f); in CallFunctionBenchmark()
98 benchmark::DoNotOptimize(a); in operator ()()
99 benchmark::DoNotOptimize(b); in operator ()()
100 benchmark::DoNotOptimize(c); in operator ()()
104 void BM_TrivialArgsStdFunction(benchmark::State& state) { in BM_TrivialArgsStdFunction()
108 BENCHMARK(BM_TrivialArgsStdFunction);
110 void BM_TrivialArgsFunctionRef(benchmark::State& state) { in BM_TrivialArgsFunctionRef()
114 BENCHMARK(BM_TrivialArgsFunctionRef);
118 benchmark::DoNotOptimize(&a); in operator ()()
119 benchmark::DoNotOptimize(&b); in operator ()()
120 benchmark::DoNotOptimize(&c); in operator ()()
124 void BM_NonTrivialArgsStdFunction(benchmark::State& state) { in BM_NonTrivialArgsStdFunction()
130 BENCHMARK(BM_NonTrivialArgsStdFunction);
132 void BM_NonTrivialArgsFunctionRef(benchmark::State& state) { in BM_NonTrivialArgsFunctionRef()
138 BENCHMARK(BM_NonTrivialArgsFunctionRef);