HomeSort by: relevance | last modified time | path
    Searched refs:BENCHMARK (Results 1 - 25 of 43) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/
options_test.cc 1 #include "benchmark/benchmark.h"
10 void BM_basic(benchmark::State& state) {
15 void BM_basic_slow(benchmark::State& state) {
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)
    [all...]
link_main_test.cc 1 #include "benchmark/benchmark.h"
3 void BM_empty(benchmark::State& state) {
5 benchmark::DoNotOptimize(state.iterations());
8 BENCHMARK(BM_empty);
basic_test.cc 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) {
8 benchmark::DoNotOptimize(state.iterations());
11 BENCHMARK(BM_empty);
12 BENCHMARK(BM_empty)->ThreadPerCpu();
14 void BM_spin_empty(benchmark::State& state) {
17 benchmark::DoNotOptimize(x);
24 void BM_spin_pause_before(benchmark::State& state)
    [all...]
filter_test.cc 1 #include "benchmark/benchmark.h"
15 class TestReporter : public benchmark::ConsoleReporter {
38 static void NoPrefix(benchmark::State& state) {
42 BENCHMARK(NoPrefix);
44 static void BM_Foo(benchmark::State& state) {
48 BENCHMARK(BM_Foo);
50 static void BM_Bar(benchmark::State& state) {
54 BENCHMARK(BM_Bar);
56 static void BM_FooBar(benchmark::State& state)
    [all...]
benchmark_test.cc 1 #include "benchmark/benchmark.h"
54 static void BM_Factorial(benchmark::State& state) {
62 BENCHMARK(BM_Factorial);
63 BENCHMARK(BM_Factorial)->UseRealTime();
65 static void BM_CalculatePiRange(benchmark::State& state) {
74 static void BM_CalculatePi(benchmark::State& state) {
77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth)));
80 BENCHMARK(BM_CalculatePi)->Threads(8);
81 BENCHMARK(BM_CalculatePi)->ThreadRange(1, 32)
    [all...]
complexity_test.cc 7 #include "benchmark/benchmark.h"
55 void BM_Complexity_O1(benchmark::State& state) {
58 benchmark::DoNotOptimize(&i);
63 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity(benchmark::o1);
64 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity();
65 BENCHMARK(BM_Complexity_O1)->Range(1, 1 << 18)->Complexity([](int64_t) {
75 // See https://github.com/google/benchmark/issues/272
104 void BM_Complexity_O_N(benchmark::State& state)
    [all...]
reporter_output_test.cc 5 #include "benchmark/benchmark.h"
13 {"^Benchmark %s Time %s CPU %s Iterations$", MR_Next},
33 auto const& Info = benchmark::CPUInfo::Get();
67 void BM_basic(benchmark::State& state) {
71 BENCHMARK(BM_basic);
88 void BM_bytes_per_second(benchmark::State& state) {
93 BENCHMARK(BM_bytes_per_second);
112 void BM_items_per_second(benchmark::State& state) {
117 BENCHMARK(BM_items_per_second)
    [all...]
display_aggregates_only_test.cc 6 #include "benchmark/benchmark.h"
13 void BM_SummaryRepeat(benchmark::State& state) {
17 BENCHMARK(BM_SummaryRepeat)->Repetitions(3)->DisplayAggregatesOnly();
report_aggregates_only_test.cc 6 #include "benchmark/benchmark.h"
13 void BM_SummaryRepeat(benchmark::State& state) {
17 BENCHMARK(BM_SummaryRepeat)->Repetitions(3)->ReportAggregatesOnly();
cxx03_test.cc 5 #include "benchmark/benchmark.h"
15 void BM_empty(benchmark::State& state) {
21 BENCHMARK(BM_empty);
25 void BM_old_arg_range_interface(benchmark::State& state) {
31 BENCHMARK(BM_old_arg_range_interface)->ArgPair(1, 2)->RangePair(5, 5, 6, 6);
34 void BM_template2(benchmark::State& state) {
40 void BM_template1(benchmark::State& state) {
47 struct BM_Fixture : public ::benchmark::Fixture {
50 BENCHMARK_TEMPLATE_F(BM_Fixture, BM_template1, long)(benchmark::State& state)
    [all...]
skip_with_error_test.cc 7 #include "benchmark/benchmark.h"
11 class TestReporter : public benchmark::ConsoleReporter {
33 typedef benchmark::BenchmarkReporter::Run Run;
64 void BM_error_before_running(benchmark::State& state) {
70 BENCHMARK(BM_error_before_running);
73 void BM_error_before_running_batch(benchmark::State& state) {
79 BENCHMARK(BM_error_before_running_batch);
82 void BM_error_before_running_range_for(benchmark::State& state) {
88 BENCHMARK(BM_error_before_running_range_for)
    [all...]
diagnostics_test.cc 14 #include "benchmark/benchmark.h"
28 void try_invalid_pause_resume(benchmark::State& state) {
45 void BM_diagnostic_test(benchmark::State& state) {
51 benchmark::DoNotOptimize(state.iterations());
58 BENCHMARK(BM_diagnostic_test);
61 void BM_diagnostic_test_keep_running(benchmark::State& state) {
67 benchmark::DoNotOptimize(state.iterations());
74 BENCHMARK(BM_diagnostic_test_keep_running);
77 benchmark::internal::GetAbortHandler() = &TestHandler
    [all...]
  /src/external/apache2/llvm/dist/llvm/utils/benchmark/test/
options_test.cc 1 #include "benchmark/benchmark.h"
10 void BM_basic(benchmark::State& state) {
15 void BM_basic_slow(benchmark::State& state) {
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)
    [all...]
link_main_test.cc 1 #include "benchmark/benchmark.h"
3 void BM_empty(benchmark::State& state) {
5 benchmark::DoNotOptimize(state.iterations());
8 BENCHMARK(BM_empty);
basic_test.cc 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) {
8 benchmark::DoNotOptimize(state.iterations());
11 BENCHMARK(BM_empty);
12 BENCHMARK(BM_empty)->ThreadPerCpu();
14 void BM_spin_empty(benchmark::State& state) {
17 benchmark::DoNotOptimize(x);
24 void BM_spin_pause_before(benchmark::State& state)
    [all...]
reporter_output_test.cc 5 #include "benchmark/benchmark.h"
14 {"^Benchmark %s Time %s CPU %s Iterations$", MR_Next},
31 auto const& Caches = benchmark::CPUInfo::Get().caches;
59 void BM_basic(benchmark::State& state) {
63 BENCHMARK(BM_basic);
78 void BM_bytes_per_second(benchmark::State& state) {
83 BENCHMARK(BM_bytes_per_second);
100 void BM_items_per_second(benchmark::State& state) {
105 BENCHMARK(BM_items_per_second)
    [all...]
filter_test.cc 1 #include "benchmark/benchmark.h"
15 class TestReporter : public benchmark::ConsoleReporter {
38 static void NoPrefix(benchmark::State& state) {
42 BENCHMARK(NoPrefix);
44 static void BM_Foo(benchmark::State& state) {
48 BENCHMARK(BM_Foo);
50 static void BM_Bar(benchmark::State& state) {
54 BENCHMARK(BM_Bar);
56 static void BM_FooBar(benchmark::State& state)
    [all...]
benchmark_test.cc 1 #include "benchmark/benchmark.h"
54 static void BM_Factorial(benchmark::State& state) {
62 BENCHMARK(BM_Factorial);
63 BENCHMARK(BM_Factorial)->UseRealTime();
65 static void BM_CalculatePiRange(benchmark::State& state) {
74 static void BM_CalculatePi(benchmark::State& state) {
77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth)));
80 BENCHMARK(BM_CalculatePi)->Threads(8);
81 BENCHMARK(BM_CalculatePi)->ThreadRange(1, 32)
    [all...]
complexity_test.cc 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([](int64_t) {
67 // See https://github.com/google/benchmark/issues/272
93 void BM_Complexity_O_N(benchmark::State& state)
    [all...]
cxx03_test.cc 5 #include "benchmark/benchmark.h"
15 void BM_empty(benchmark::State& state) {
21 BENCHMARK(BM_empty);
25 void BM_old_arg_range_interface(benchmark::State& state) {
31 BENCHMARK(BM_old_arg_range_interface)->ArgPair(1, 2)->RangePair(5, 5, 6, 6);
34 void BM_template2(benchmark::State& state) {
40 void BM_template1(benchmark::State& state) {
47 struct BM_Fixture : public ::benchmark::Fixture {
50 BENCHMARK_TEMPLATE_F(BM_Fixture, BM_template1, long)(benchmark::State& state)
    [all...]
skip_with_error_test.cc 7 #include "benchmark/benchmark.h"
11 class TestReporter : public benchmark::ConsoleReporter {
33 typedef benchmark::BenchmarkReporter::Run Run;
64 void BM_error_before_running(benchmark::State& state) {
70 BENCHMARK(BM_error_before_running);
74 void BM_error_before_running_batch(benchmark::State& state) {
80 BENCHMARK(BM_error_before_running_batch);
83 void BM_error_before_running_range_for(benchmark::State& state) {
89 BENCHMARK(BM_error_before_running_range_for)
    [all...]
user_counters_test.cc 4 #include "benchmark/benchmark.h"
13 {"^Benchmark %s Time %s CPU %s Iterations UserCounters...$", MR_Next},
21 void BM_Counters_Simple(benchmark::State& state) {
27 BENCHMARK(BM_Counters_Simple);
53 void BM_Counters_WithBytesAndItemsPSec(benchmark::State& state) {
61 BENCHMARK(BM_Counters_WithBytesAndItemsPSec);
94 void BM_Counters_Rate(benchmark::State& state) {
97 namespace bm = benchmark;
101 BENCHMARK(BM_Counters_Rate)
    [all...]
  /src/external/apache2/llvm/dist/llvm/benchmarks/
DummyYAML.cpp 1 #include "benchmark/benchmark.h"
4 static void BM_YAMLDummyIsNumeric(benchmark::State& state) {
11 BENCHMARK(BM_YAMLDummyIsNumeric);
  /src/external/apache2/llvm/dist/libcxx/benchmarks/
util_smartptr.bench.cpp 11 #include "benchmark/benchmark.h"
13 static void BM_SharedPtrCreateDestroy(benchmark::State& st) {
16 benchmark::DoNotOptimize(sp.get());
19 BENCHMARK(BM_SharedPtrCreateDestroy);
21 static void BM_SharedPtrIncDecRef(benchmark::State& st) {
23 benchmark::DoNotOptimize(sp.get());
26 benchmark::ClobberMemory();
29 BENCHMARK(BM_SharedPtrIncDecRef);
31 static void BM_WeakPtrIncDecRef(benchmark::State& st)
    [all...]
to_chars.bench.cpp 12 #include "benchmark/benchmark.h"
23 static void BM_to_chars_good(benchmark::State& state) {
28 benchmark::DoNotOptimize(std::to_chars(buffer, &buffer[128], value, base));
30 BENCHMARK(BM_to_chars_good)->DenseRange(2, 36, 1);
32 static void BM_to_chars_bad(benchmark::State& state) {
48 benchmark::DoNotOptimize(std::to_chars(buffer, &buffer[element.size], element.value, base));
50 BENCHMARK(BM_to_chars_bad)->DenseRange(2, 36, 1);
53 benchmark::Initialize(&argc, argv);
54 if (benchmark::ReportUnrecognizedArguments(argc, argv)
    [all...]

Completed in 43 milliseconds

1 2