Lines Matching full:benchmark
1 #include "benchmark/benchmark.h"
10 void BM_basic(benchmark::State& state) { in BM_basic()
15 void BM_basic_slow(benchmark::State& state) { in BM_basic_slow()
23 BENCHMARK(BM_basic);
24 BENCHMARK(BM_basic)->Arg(42);
25 BENCHMARK(BM_basic_slow)->Arg(10)->Unit(benchmark::kNanosecond);
26 BENCHMARK(BM_basic_slow)->Arg(100)->Unit(benchmark::kMicrosecond);
27 BENCHMARK(BM_basic_slow)->Arg(1000)->Unit(benchmark::kMillisecond);
28 BENCHMARK(BM_basic_slow)->Arg(1000)->Unit(benchmark::kSecond);
29 BENCHMARK(BM_basic)->Range(1, 8);
30 BENCHMARK(BM_basic)->RangeMultiplier(2)->Range(1, 8);
31 BENCHMARK(BM_basic)->DenseRange(10, 15);
32 BENCHMARK(BM_basic)->Args({42, 42});
33 BENCHMARK(BM_basic)->Ranges({{64, 512}, {64, 512}});
34 BENCHMARK(BM_basic)->MinTime(0.7);
35 BENCHMARK(BM_basic)->UseRealTime();
36 BENCHMARK(BM_basic)->ThreadRange(2, 4);
37 BENCHMARK(BM_basic)->ThreadPerCpu();
38 BENCHMARK(BM_basic)->Repetitions(3);
39 BENCHMARK(BM_basic)
45 BENCHMARK(BM_basic)->Range(-64, -1);
46 BENCHMARK(BM_basic)->RangeMultiplier(4)->Range(-8, 8);
47 BENCHMARK(BM_basic)->DenseRange(-2, 2, 1);
48 BENCHMARK(BM_basic)->Ranges({{-64, 1}, {-8, -1}});
50 void CustomArgs(benchmark::internal::Benchmark* b) { in CustomArgs()
56 BENCHMARK(BM_basic)->Apply(CustomArgs);
58 void BM_explicit_iteration_count(benchmark::State& state) { in BM_explicit_iteration_count()
74 BENCHMARK(BM_explicit_iteration_count)->Iterations(42);