Home
last modified time | relevance | path

Searched refs:DoNotOptimize (Results 1 – 25 of 49) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/
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 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 Dbasic_test.cc8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
30 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
41 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
45 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
66 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
70 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
78 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
82 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
[all …]
H A Dclobber_memory_assembly_test.cc18 benchmark::DoNotOptimize(&x); in test_basic()
39 benchmark::DoNotOptimize(&x); in test_redundant_read()
53 benchmark::DoNotOptimize(&x); in test_redundant_read2()
H A Dstate_assembly_test.cc30 benchmark::DoNotOptimize(x); in test_for_auto_loop()
51 benchmark::DoNotOptimize(x); in test_while_loop()
H A Dbenchmark_test.cc77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth))); in BM_CalculatePi()
124 for (auto _ : state) benchmark::DoNotOptimize(s1.compare(s2)); in BM_StringCompare()
152 benchmark::DoNotOptimize(tracker += i); in BM_LongTest()
171 benchmark::DoNotOptimize(test_vector->at(i) = 1); in BM_ParallelMemset()
H A Ddiagnostics_test.cc51 benchmark::DoNotOptimize(state.iterations()); in BM_diagnostic_test()
67 benchmark::DoNotOptimize(state.iterations()); in BM_diagnostic_test_keep_running()
H A Dmap_test.cc27 benchmark::DoNotOptimize(m.find(std::rand() % size)); in BM_MapLookup()
50 benchmark::DoNotOptimize(m.find(std::rand() % size)); in BENCHMARK_DEFINE_F()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/test/
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 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 Dbasic_test.cc8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
30 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
41 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
45 benchmark::DoNotOptimize(i); in BM_spin_pause_during()
66 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
70 benchmark::DoNotOptimize(i); in BM_spin_pause_after()
78 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
82 benchmark::DoNotOptimize(i); in BM_spin_pause_before_and_after()
[all …]
H A Dclobber_memory_assembly_test.cc18 benchmark::DoNotOptimize(&x); in test_basic()
39 benchmark::DoNotOptimize(&x); in test_redundant_read()
53 benchmark::DoNotOptimize(&x); in test_redundant_read2()
H A Dstate_assembly_test.cc28 benchmark::DoNotOptimize(x); in test_for_auto_loop()
49 benchmark::DoNotOptimize(x); in test_while_loop()
H A Dbenchmark_test.cc77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth))); in BM_CalculatePi()
124 for (auto _ : state) benchmark::DoNotOptimize(s1.compare(s2)); in BM_StringCompare()
152 benchmark::DoNotOptimize(tracker += i); in BM_LongTest()
171 benchmark::DoNotOptimize(test_vector->at(i) = 1); in BM_ParallelMemset()
H A Ddiagnostics_test.cc51 benchmark::DoNotOptimize(state.iterations()); in BM_diagnostic_test()
67 benchmark::DoNotOptimize(state.iterations()); in BM_diagnostic_test_keep_running()
H A Dmap_test.cc27 benchmark::DoNotOptimize(m.find(std::rand() % size)); in BM_MapLookup()
50 benchmark::DoNotOptimize(m.find(std::rand() % size)); in BENCHMARK_DEFINE_F()
/netbsd-src/external/apache2/llvm/dist/libcxx/benchmarks/
H A Dfilesystem.bench.cpp16 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructString()
19 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructString()
34 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructCStr()
37 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructCStr()
54 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructIter()
55 benchmark::DoNotOptimize(Start); in BM_PathConstructIter()
56 benchmark::DoNotOptimize(End); in BM_PathConstructIter()
59 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructIter()
84 benchmark::DoNotOptimize(PP.native().data()); in BM_PathIterateMultipleTimes()
87 benchmark::DoNotOptimize(E.native().data()); in BM_PathIterateMultipleTimes()
[all …]
H A DContainerBenchmarks.h43 benchmark::DoNotOptimize(&in); in BM_ConstructIterIter()
57 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValue()
71 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValueRehash()
83 benchmark::DoNotOptimize(&c); in BM_InsertDuplicate()
84 benchmark::DoNotOptimize(&in); in BM_InsertDuplicate()
87 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertDuplicate()
99 benchmark::DoNotOptimize(&c); in BM_EmplaceDuplicate()
100 benchmark::DoNotOptimize(&in); in BM_EmplaceDuplicate()
103 benchmark::DoNotOptimize(&(*c.emplace(*it).first)); in BM_EmplaceDuplicate()
113 benchmark::DoNotOptimize(&(*c.begin())); in BM_Find()
[all …]
H A Dfunction.bench.cpp110 benchmark::DoNotOptimize(MakeFunction(FunctionType(), true)); in run()
127 benchmark::DoNotOptimize(value); in run()
129 benchmark::DoNotOptimize(copy); in run()
142 benchmark::DoNotOptimize(values); in run()
143 benchmark::DoNotOptimize(values[i ^ 1] = std::move(values[i])); in run()
158 benchmark::DoNotOptimize(values); in run()
175 benchmark::DoNotOptimize(f); in run()
176 benchmark::DoNotOptimize(static_cast<bool>(f)); in run()
189 benchmark::DoNotOptimize(value); in run()
190 benchmark::DoNotOptimize(value(&s)); in run()
H A Dstring.bench.cpp18 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindNoMatch()
27 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindAllMatch()
37 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindMatch1()
48 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindMatch2()
55 benchmark::DoNotOptimize(Default); in BM_StringCtorDefault()
160 benchmark::DoNotOptimize( in run()
224 benchmark::DoNotOptimize(Storage); in run()
249 benchmark::DoNotOptimize(strings); in run()
274 benchmark::DoNotOptimize(strings); in run()
298 benchmark::DoNotOptimize(strings); in run()
[all …]
H A Dmap.bench.cpp103 benchmark::DoNotOptimize(std::map<uint64_t, int64_t>()); in run()
118 benchmark::DoNotOptimize( in run()
140 benchmark::DoNotOptimize(M); in run()
160 benchmark::DoNotOptimize(M); in run()
183 benchmark::DoNotOptimize(Map.empty()); in run()
202 benchmark::DoNotOptimize(Map.size()); in run()
225 benchmark::DoNotOptimize(Map); in run()
248 benchmark::DoNotOptimize(Map.insert(std::make_pair(K, 1))); in run()
290 benchmark::DoNotOptimize(Map.insert(*H, std::make_pair(K, 1))); in run()
324 benchmark::DoNotOptimize(Map.insert(Itor, std::make_pair(K, 1))); in run()
[all …]
H A Dordered_set.bench.cpp93 benchmark::DoNotOptimize(Set.insert(K)); in run()
114 benchmark::DoNotOptimize(Set.find(K)); in run()
135 benchmark::DoNotOptimize(Set.find(K) != Set.end()); in run()
156 benchmark::DoNotOptimize(Set.insert(K)); in run()
177 benchmark::DoNotOptimize(Set.erase(Set.insert(K).first)); in run()
198 benchmark::DoNotOptimize(V); in run()
217 benchmark::DoNotOptimize(*it); in run()
H A Dutil_smartptr.bench.cpp16 benchmark::DoNotOptimize(sp.get()); in BM_SharedPtrCreateDestroy()
23 benchmark::DoNotOptimize(sp.get()); in BM_SharedPtrIncDecRef()
33 benchmark::DoNotOptimize(sp.get()); in BM_WeakPtrIncDecRef()
H A DUtilities.h28 void DoNotOptimizeData(Container &c) { benchmark::DoNotOptimize(c.data()); } in DoNotOptimizeData()
30 void DoNotOptimizeData(Container &c) { benchmark::DoNotOptimize(&c); } in DoNotOptimizeData()
H A Dto_chars.bench.cpp28 benchmark::DoNotOptimize(std::to_chars(buffer, &buffer[128], value, base)); in BM_to_chars_good()
48 benchmark::DoNotOptimize(std::to_chars(buffer, &buffer[element.size], element.value, base)); in BM_to_chars_bad()

12