Home
last modified time | relevance | path

Searched refs:benchmark (Results 1 – 25 of 229) sorted by relevance

12345678910

/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/
H A Dstring_util_gtest.cc12 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
17 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
22 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
28 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
34 EXPECT_EQ(0xFFFFFFFFFFFFFFFFul, benchmark::stoul("18446744073709551615", &pos)); in TEST()
40 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
45 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
50 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
55 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
60 EXPECT_EQ(0xBEEFul, benchmark::stoul("BEEF", &pos, 16)); in TEST()
[all …]
H A Dbasic_test.cc6 void BM_empty(benchmark::State& state) { in BM_empty()
8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
14 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
24 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
30 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
37 void BM_spin_pause_during(benchmark::State& state) { in BM_spin_pause_during()
41 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
45 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
[all …]
H A Ddonotoptimize_assembly_test.cc30 benchmark::DoNotOptimize(Add42(0)); in test_with_rvalue()
37 benchmark::DoNotOptimize(Large{ExternInt, {ExternInt, ExternInt}}); in test_with_large_rvalue()
47 benchmark::DoNotOptimize(NotTriviallyCopyable(ExternInt)); in test_with_non_trivial_rvalue()
55 benchmark::DoNotOptimize(x); in test_with_lvalue()
64 benchmark::DoNotOptimize(L); in test_with_large_lvalue()
75 benchmark::DoNotOptimize(NTC); in test_with_non_trivial_lvalue()
84 benchmark::DoNotOptimize(x); in test_with_const_lvalue()
92 benchmark::DoNotOptimize(L); in test_with_large_const_lvalue()
103 benchmark::DoNotOptimize(Obj); in test_with_non_trivial_const_lvalue()
111 benchmark::DoNotOptimize(divisor); in test_div_by_two()
[all …]
H A Dregister_benchmark_test.cc11 class TestReporter : public benchmark::ConsoleReporter {
29 typedef benchmark::BenchmarkReporter::Run Run;
60 typedef benchmark::internal::Benchmark* ReturnVal;
65 void BM_function(benchmark::State& state) { in BM_function()
70 ReturnVal dummy = benchmark::RegisterBenchmark(
81 void BM_extra_args(benchmark::State& st, const char* label) { in BM_extra_args()
90 benchmark::RegisterBenchmark(c.first, &BM_extra_args, c.second); in RegisterFromFunction()
103 void operator()(benchmark::State& st) { in operator ()()
113 benchmark::RegisterBenchmark("custom_fixture", fx); in TestRegistrationAtRuntime()
120 auto capturing_lam = [=](benchmark::State& st) { in TestRegistrationAtRuntime()
[all …]
H A Ddonotoptimize_test.cc32 benchmark::DoNotOptimize(buffer8); in main()
35 benchmark::DoNotOptimize(buffer20); in main()
38 benchmark::DoNotOptimize(buffer1024); in main()
39 benchmark::DoNotOptimize(&buffer1024[0]); in main()
42 benchmark::DoNotOptimize(x); in main()
43 benchmark::DoNotOptimize(&x); in main()
44 benchmark::DoNotOptimize(x += 42); in main()
46 benchmark::DoNotOptimize(double_up(x)); in main()
49 benchmark::DoNotOptimize(BitRef::Make()); in main()
51 benchmark::DoNotOptimize(lval); in main()
H A Dstatistics_gtest.cc10 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({42, 42, 42, 42}), 42.0); in TEST()
11 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 3, 4}), 2.5); in TEST()
12 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 5, 10, 10, 14}), 7.0); in TEST()
16 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({42, 42, 42, 42}), 42.0); in TEST()
17 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 3, 4}), 2.5); in TEST()
18 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 5, 10, 10}), 5.0); in TEST()
22 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({101, 101, 101, 101}), 0.0); in TEST()
23 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({1, 2, 3}), 1.0); in TEST()
24 EXPECT_FLOAT_EQ(benchmark::StatisticsStdDev({1.5, 2.4, 3.3, 4.2, 5.1}), in TEST()
H A Dreporter_output_test.cc33 auto const& Info = benchmark::CPUInfo::Get(); in AddContextCases()
67 void BM_basic(benchmark::State& state) { in BM_basic()
88 void BM_bytes_per_second(benchmark::State& state) { in BM_bytes_per_second()
112 void BM_items_per_second(benchmark::State& state) { in BM_items_per_second()
136 void BM_label(benchmark::State& state) { in BM_label()
160 void BM_error(benchmark::State& state) { in BM_error()
180 void BM_no_arg_name(benchmark::State& state) { in BM_no_arg_name()
195 void BM_arg_name(benchmark::State& state) { in BM_arg_name()
210 void BM_arg_names(benchmark::State& state) { in BM_arg_names()
227 void BM_BigArgs(benchmark::State& state) { in BM_BigArgs()
[all …]
H A Dclobber_memory_assembly_test.cc18 benchmark::DoNotOptimize(&x); in test_basic()
20 benchmark::ClobberMemory(); in test_basic()
29 benchmark::ClobberMemory(); in test_redundant_store()
39 benchmark::DoNotOptimize(&x); in test_redundant_read()
41 benchmark::ClobberMemory(); in test_redundant_read()
53 benchmark::DoNotOptimize(&x); in test_redundant_read2()
55 benchmark::ClobberMemory(); in test_redundant_read2()
57 benchmark::ClobberMemory(); in test_redundant_read2()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/test/
H A Dbasic_test.cc6 void BM_empty(benchmark::State& state) { in BM_empty()
8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
14 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
24 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
30 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
37 void BM_spin_pause_during(benchmark::State& state) { in BM_spin_pause_during()
41 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
45 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
[all …]
H A Ddonotoptimize_assembly_test.cc30 benchmark::DoNotOptimize(Add42(0)); in test_with_rvalue()
37 benchmark::DoNotOptimize(Large{ExternInt, {ExternInt, ExternInt}}); in test_with_large_rvalue()
47 benchmark::DoNotOptimize(NotTriviallyCopyable(ExternInt)); in test_with_non_trivial_rvalue()
55 benchmark::DoNotOptimize(x); in test_with_lvalue()
64 benchmark::DoNotOptimize(L); in test_with_large_lvalue()
75 benchmark::DoNotOptimize(NTC); in test_with_non_trivial_lvalue()
84 benchmark::DoNotOptimize(x); in test_with_const_lvalue()
92 benchmark::DoNotOptimize(L); in test_with_large_const_lvalue()
103 benchmark::DoNotOptimize(Obj); in test_with_non_trivial_const_lvalue()
111 benchmark::DoNotOptimize(divisor); in test_div_by_two()
[all …]
H A Dregister_benchmark_test.cc11 class TestReporter : public benchmark::ConsoleReporter {
29 typedef benchmark::BenchmarkReporter::Run Run;
58 typedef benchmark::internal::Benchmark* ReturnVal;
63 void BM_function(benchmark::State& state) { in BM_function()
68 ReturnVal dummy = benchmark::RegisterBenchmark(
79 void BM_extra_args(benchmark::State& st, const char* label) { in BM_extra_args()
88 benchmark::RegisterBenchmark(c.first, &BM_extra_args, c.second); in RegisterFromFunction()
101 void operator()(benchmark::State& st) { in operator ()()
111 benchmark::RegisterBenchmark("custom_fixture", fx); in TestRegistrationAtRuntime()
118 auto capturing_lam = [=](benchmark::State& st) { in TestRegistrationAtRuntime()
[all …]
H A Ddonotoptimize_test.cc32 benchmark::DoNotOptimize(buffer8); in main()
35 benchmark::DoNotOptimize(buffer20); in main()
38 benchmark::DoNotOptimize(buffer1024); in main()
39 benchmark::DoNotOptimize(&buffer1024[0]); in main()
42 benchmark::DoNotOptimize(x); in main()
43 benchmark::DoNotOptimize(&x); in main()
44 benchmark::DoNotOptimize(x += 42); in main()
46 benchmark::DoNotOptimize(double_up(x)); in main()
49 benchmark::DoNotOptimize(BitRef::Make()); in main()
51 benchmark::DoNotOptimize(lval); in main()
H A Dreporter_output_test.cc31 auto const& Caches = benchmark::CPUInfo::Get().caches; in AddContextCases()
59 void BM_basic(benchmark::State& state) { in BM_basic()
78 void BM_bytes_per_second(benchmark::State& state) { in BM_bytes_per_second()
100 void BM_items_per_second(benchmark::State& state) { in BM_items_per_second()
122 void BM_label(benchmark::State& state) { in BM_label()
144 void BM_error(benchmark::State& state) { in BM_error()
162 void BM_no_arg_name(benchmark::State& state) { in BM_no_arg_name()
175 void BM_arg_name(benchmark::State& state) { in BM_arg_name()
188 void BM_arg_names(benchmark::State& state) { in BM_arg_names()
202 void BM_Complexity_O1(benchmark::State& state) { in BM_Complexity_O1()
[all …]
H A Dclobber_memory_assembly_test.cc18 benchmark::DoNotOptimize(&x); in test_basic()
20 benchmark::ClobberMemory(); in test_basic()
29 benchmark::ClobberMemory(); in test_redundant_store()
39 benchmark::DoNotOptimize(&x); in test_redundant_read()
41 benchmark::ClobberMemory(); in test_redundant_read()
53 benchmark::DoNotOptimize(&x); in test_redundant_read2()
55 benchmark::ClobberMemory(); in test_redundant_read2()
57 benchmark::ClobberMemory(); in test_redundant_read2()
/netbsd-src/external/apache2/llvm/dist/libcxx/benchmarks/
H A DContainerBenchmarks.h21 void BM_ConstructSize(benchmark::State& st, Container) { in BM_ConstructSize()
30 void BM_ConstructSizeValue(benchmark::State& st, Container, typename Container::value_type const& v… in BM_ConstructSizeValue()
39 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) { in BM_ConstructIterIter()
43 benchmark::DoNotOptimize(&in); in BM_ConstructIterIter()
51 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValue()
57 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValue()
59 benchmark::ClobberMemory(); in BM_InsertValue()
64 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValueRehash()
71 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValueRehash()
73 benchmark::ClobberMemory(); in BM_InsertValueRehash()
[all …]
H A Dfilesystem.bench.cpp10 void BM_PathConstructString(benchmark::State &st, GenInputs gen) { in BM_PathConstructString()
16 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructString()
19 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructString()
28 void BM_PathConstructCStr(benchmark::State &st, GenInputs gen) { in BM_PathConstructCStr()
34 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructCStr()
37 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructCStr()
45 void BM_PathConstructIter(benchmark::State &st, GenInputs gen) { in BM_PathConstructIter()
54 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructIter()
55 benchmark::DoNotOptimize(Start); in BM_PathConstructIter()
56 benchmark::DoNotOptimize(End); in BM_PathConstructIter()
[all …]
H A Dfunction.bench.cpp107 static void run(benchmark::State& state) { in run()
110 benchmark::DoNotOptimize(MakeFunction(FunctionType(), true)); in run()
124 static void run(benchmark::State& state) { in run()
127 benchmark::DoNotOptimize(value); in run()
129 benchmark::DoNotOptimize(copy); in run()
138 static void run(benchmark::State& state) { in run()
142 benchmark::DoNotOptimize(values); in run()
143 benchmark::DoNotOptimize(values[i ^ 1] = std::move(values[i])); in run()
155 static void run(benchmark::State& state) { in run()
158 benchmark::DoNotOptimize(values); in run()
[all …]
H A Dstring.bench.cpp14 static void BM_StringFindNoMatch(benchmark::State &state) { in BM_StringFindNoMatch()
18 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindNoMatch()
23 static void BM_StringFindAllMatch(benchmark::State &state) { in BM_StringFindAllMatch()
27 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindAllMatch()
32 static void BM_StringFindMatch1(benchmark::State &state) { in BM_StringFindMatch1()
37 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindMatch1()
42 static void BM_StringFindMatch2(benchmark::State &state) { in BM_StringFindMatch2()
48 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindMatch2()
52 static void BM_StringCtorDefault(benchmark::State &state) { in BM_StringCtorDefault()
55 benchmark::DoNotOptimize(Default); in BM_StringCtorDefault()
[all …]
H A Dmap.bench.cpp101 void run(benchmark::State& State) const { in run()
103 benchmark::DoNotOptimize(std::map<uint64_t, int64_t>()); in run()
113 void run(benchmark::State& State) const { in run()
118 benchmark::DoNotOptimize( in run()
134 void run(benchmark::State& State) const { in run()
140 benchmark::DoNotOptimize(M); in run()
155 void run(benchmark::State& State) const { in run()
160 benchmark::DoNotOptimize(M); in run()
178 void run(benchmark::State& State) const { in run()
183 benchmark::DoNotOptimize(Map.empty()); in run()
[all …]
H A Dordered_set.bench.cpp84 void run(benchmark::State& State) const { in run()
93 benchmark::DoNotOptimize(Set.insert(K)); in run()
108 void run(benchmark::State& State) const { in run()
114 benchmark::DoNotOptimize(Set.find(K)); in run()
129 void run(benchmark::State& State) const { in run()
135 benchmark::DoNotOptimize(Set.find(K) != Set.end()); in run()
150 void run(benchmark::State& State) const { in run()
156 benchmark::DoNotOptimize(Set.insert(K)); in run()
171 void run(benchmark::State& State) const { in run()
177 benchmark::DoNotOptimize(Set.erase(Set.insert(K).first)); in run()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/
H A DREADME.md1 # benchmark chapter
2 …uild Status](https://travis-ci.org/google/benchmark.svg?branch=master)](https://travis-ci.org/goog…
3 …7t1tk7cpxs/branch/master?svg=true)](https://ci.appveyor.com/project/google/benchmark/branch/master)
4 …age Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/google/
9 [Discussion group](https://groups.google.com/d/forum/benchmark-discuss)
23 $ git clone https://github.com/google/benchmark.git
25 $ git clone https://github.com/google/googletest.git benchmark/googletest
27 $ cmake -G <generator> [options] ../benchmark
35 * Checkout the Google Test sources into `benchmark/googletest` as above.
57 git clone https://github.com/google/benchmark.git
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/
H A DREADME.md1 # benchmark chapter
2 …uild Status](https://travis-ci.org/google/benchmark.svg?branch=master)](https://travis-ci.org/goog…
3 …7t1tk7cpxs/branch/master?svg=true)](https://ci.appveyor.com/project/google/benchmark/branch/master)
4 …age Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/google/
9 Discussion group: https://groups.google.com/d/forum/benchmark-discuss
25 $ git clone https://github.com/google/benchmark.git
27 $ git clone https://github.com/google/googletest.git benchmark/googletest
29 $ cmake -G <generator> [options] ../benchmark
37 * Checkout the Google Test sources into `benchmark/googletest` as above.
60 git clone https://github.com/google/benchmark.git
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/docs/
H A Dtools.md9 $ compare_bench.py <old-benchmark> <new-benchmark> [benchmark options]...
12benchmark>` and `<new-benchmark>` either specify a benchmark executable file, or a JSON output fil…
14 `[benchmark options]` will be passed to the benchmarks invocations. They can be anything that binar…
39 When a benchmark executable is run, the raw output from the benchmark is printed in real time to st…
85 $ compare.py benchmarks <benchmark_baseline> <benchmark_contender> [benchmark options]...
87benchmark executable file, or a JSON output file. The type of the input file is automatically dete…
89 `[benchmark options]` will be passed to the benchmarks invocations. They can be anything that binar…
141benchmark from the first run it looks for the benchmark with exactly the same name in the second r…
144 2. Compare two different filters of one benchmark
148 $ compare.py filters <benchmark> <filter_baseline> <filter_contender> [benchmark options]...
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A DCMakeLists.txt12 ${PROJECT_SOURCE_DIR}/include/benchmark/*.h
19 add_library(benchmark ${SOURCE_FILES}) target
20 set_target_properties(benchmark PROPERTIES
21 OUTPUT_NAME "benchmark"
25 target_include_directories(benchmark PUBLIC
30 target_link_libraries(benchmark ${BENCHMARK_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
33 target_link_libraries(benchmark ${LIBRT})
38 target_link_libraries(benchmark shlwapi)
43 target_link_libraries(benchmark kstat)
53 target_include_directories(benchmark PUBLIC
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A DCMakeLists.txt12 ${PROJECT_SOURCE_DIR}/include/benchmark/*.h
19 add_library(benchmark ${SOURCE_FILES}) target
20 set_target_properties(benchmark PROPERTIES
21 OUTPUT_NAME "benchmark"
26 target_include_directories(benchmark PUBLIC
31 target_link_libraries(benchmark ${BENCHMARK_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
34 target_link_libraries(benchmark ${LIBRT})
39 target_link_libraries(benchmark shlwapi)
44 target_link_libraries(benchmark kstat)
55 target_include_directories(benchmark PUBLIC
[all …]

12345678910