Lines Matching refs:benchmark
7 #include "benchmark/benchmark.h"
48 void BM_Complexity_O1(benchmark::State& state) {
51 benchmark::DoNotOptimize(&i);
56 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity(benchmark::o1);
57 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity();
58 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity([](int) {
67 // See https://github.com/google/benchmark/issues/272
93 void BM_Complexity_O_N(benchmark::State& state) {
98 benchmark::DoNotOptimize(std::find(v.begin(), v.end(), item_not_in_vector));
102 BENCHMARK(BM_Complexity_O_N)
105 ->Complexity(benchmark::oN);
106 BENCHMARK(BM_Complexity_O_N)
110 BENCHMARK(BM_Complexity_O_N)
130 static void BM_Complexity_O_N_log_N(benchmark::State& state) {
137 BENCHMARK(BM_Complexity_O_N_log_N)
140 ->Complexity(benchmark::oNLogN);
141 BENCHMARK(BM_Complexity_O_N_log_N)
145 BENCHMARK(BM_Complexity_O_N_log_N)