Home
last modified time | relevance | path

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

12

/system/libbase/
Dformat_benchmark.cpp27 static void BenchmarkFormatInt(benchmark::State& state) { in BenchmarkFormatInt()
29 benchmark::DoNotOptimize(fmt::format("{} {} {}", 42, std::numeric_limits<int>::min(), in BenchmarkFormatInt()
36 static void BenchmarkStringPrintfInt(benchmark::State& state) { in BenchmarkStringPrintfInt()
38 benchmark::DoNotOptimize(StringPrintf("%d %d %d", 42, std::numeric_limits<int>::min(), in BenchmarkStringPrintfInt()
45 static void BenchmarkFormatFloat(benchmark::State& state) { in BenchmarkFormatFloat()
47 benchmark::DoNotOptimize(fmt::format("{} {} {}", 42.42, std::numeric_limits<float>::min(), in BenchmarkFormatFloat()
54 static void BenchmarkStringPrintfFloat(benchmark::State& state) { in BenchmarkStringPrintfFloat()
56 benchmark::DoNotOptimize(StringPrintf("%f %f %f", 42.42, std::numeric_limits<float>::min(), in BenchmarkStringPrintfFloat()
63 static void BenchmarkFormatStrings(benchmark::State& state) { in BenchmarkFormatStrings()
65 benchmark::DoNotOptimize(fmt::format("{} hello there {}", "hi,", "!!")); in BenchmarkFormatStrings()
[all …]
/system/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp25 static void BM_MemcpyToFloatFromFloatWithClamping(benchmark::State& state) { in BM_MemcpyToFloatFromFloatWithClamping()
44 benchmark::DoNotOptimize(src.data()); in BM_MemcpyToFloatFromFloatWithClamping()
45 benchmark::DoNotOptimize(dst.data()); in BM_MemcpyToFloatFromFloatWithClamping()
47 benchmark::ClobberMemory(); in BM_MemcpyToFloatFromFloatWithClamping()
58 static void BM_MemcpyFloat(benchmark::State& state) { in BM_MemcpyFloat()
73 benchmark::DoNotOptimize(src.data()); in BM_MemcpyFloat()
74 benchmark::DoNotOptimize(dst.data()); in BM_MemcpyFloat()
76 benchmark::ClobberMemory(); in BM_MemcpyFloat()
87 static void BM_MemcpyToFloatFromI16(benchmark::State& state) { in BM_MemcpyToFloatFromI16()
102 benchmark::DoNotOptimize(src.data()); in BM_MemcpyToFloatFromI16()
[all …]
Dbiquad_filter_benchmark.cpp37 static void BM_BiquadFilter1D(benchmark::State& state) { in BM_BiquadFilter1D()
65 benchmark::DoNotOptimize(data); in BM_BiquadFilter1D()
73 benchmark::ClobberMemory(); in BM_BiquadFilter1D()
77 static void BiquadFilter1DArgs(benchmark::internal::Benchmark* b) { in BiquadFilter1DArgs()
220 static void BM_BiquadFilter(benchmark::State& state, bool optimized) { in BM_BiquadFilter()
244 benchmark::DoNotOptimize(input.data()); in BM_BiquadFilter()
245 benchmark::DoNotOptimize(output.data()); in BM_BiquadFilter()
247 benchmark::ClobberMemory(); in BM_BiquadFilter()
252 static void BM_BiquadFilterFloatOptimized(benchmark::State& state) { in BM_BiquadFilterFloatOptimized()
256 static void BM_BiquadFilterFloatNonOptimized(benchmark::State& state) { in BM_BiquadFilterFloatNonOptimized()
[all …]
Dstatistics_benchmark.cpp36 static void BM_MeanVariance(benchmark::State& state, int iterlimit, int alphalimit) { in BM_MeanVariance()
48 benchmark::DoNotOptimize(data.data()); in BM_MeanVariance()
52 benchmark::ClobberMemory(); in BM_MeanVariance()
72 static void BM_MeanVariance_float_float_float(benchmark::State &state) { in BM_MeanVariance_float_float_float()
80 static void BM_RefMeanVariance_float_float(benchmark::State &state) { in BM_RefMeanVariance_float_float()
88 static auto BM_MeanVariance_float_double_double(benchmark::State &state) { in BM_MeanVariance_float_double_double()
96 static auto BM_RefMeanVariance_float_double(benchmark::State &state) { in BM_RefMeanVariance_float_double()
104 static auto BM_MeanVariance_float_float_Kahan(benchmark::State &state) { in BM_MeanVariance_float_float_Kahan()
113 static auto BM_MeanVariance_float_float_Neumaier(benchmark::State &state) { in BM_MeanVariance_float_float_Neumaier()
133 static auto BM_MeanVariance_float_float_float_alpha(benchmark::State &state) { in BM_MeanVariance_float_float_float_alpha()
[all …]
Dintrinsic_benchmark.cpp28 static void BM_Intrinsic(benchmark::State& state) { in BM_Intrinsic()
62 benchmark::DoNotOptimize(d[0]); in BM_Intrinsic()
63 benchmark::ClobberMemory(); in BM_Intrinsic()
72 static void BM_IntrinsicArgs(benchmark::internal::Benchmark* b) { in BM_IntrinsicArgs()
/system/extras/memory_replay/
DTraceBenchmark.cpp152 static void RunTrace(benchmark::State& state, TraceDataType* trace_data) { in RunTrace()
252 static void BenchmarkTrace(benchmark::State& state, const char* filename, bool enable_decay_time) { in BenchmarkTrace()
275 ->Unit(benchmark::kMicrosecond) \
280 static void BM_angry_birds2(benchmark::State& state) { in BM_angry_birds2()
286 static void BM_angry_birds2_no_decay(benchmark::State& state) { in BM_angry_birds2_no_decay()
292 static void BM_camera(benchmark::State& state) { in BM_camera()
298 static void BM_camera_no_decay(benchmark::State& state) { in BM_camera_no_decay()
304 static void BM_candy_crush_saga(benchmark::State& state) { in BM_candy_crush_saga()
310 static void BM_candy_crush_saga_no_decay(benchmark::State& state) { in BM_candy_crush_saga_no_decay()
316 void BM_gmail(benchmark::State& state) { in BM_gmail()
[all …]
/system/unwinding/libunwindstack/benchmarks/
DSymbolBenchmark.cpp32 static void BenchmarkSymbolLookup(benchmark::State& state, std::vector<uint64_t> offsets, in BenchmarkSymbolLookup()
84 static void BenchmarkSymbolLookup(benchmark::State& state, uint64_t pc, std::string elf_file, in BenchmarkSymbolLookup()
89 void BM_elf_and_symbol_not_present(benchmark::State& state) { in BM_elf_and_symbol_not_present()
94 void BM_elf_and_symbol_find_single(benchmark::State& state) { in BM_elf_and_symbol_find_single()
99 void BM_elf_and_symbol_find_single_many_times(benchmark::State& state) { in BM_elf_and_symbol_find_single_many_times()
104 void BM_elf_and_symbol_find_multiple(benchmark::State& state) { in BM_elf_and_symbol_find_multiple()
111 void BM_elf_and_symbol_not_present_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_not_present_from_sorted()
116 void BM_elf_and_symbol_find_single_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_single_from_sorted()
121 void BM_elf_and_symbol_find_single_many_times_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_single_many_times_from_sorted()
126 void BM_elf_and_symbol_find_multiple_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_multiple_from_sorted()
DElfBenchmark.cpp32 static void BenchmarkElfCreate(benchmark::State& state, const std::string& elf_file) { in BenchmarkElfCreate()
71 void BM_elf_create(benchmark::State& state) { in BM_elf_create()
76 void BM_elf_create_compressed(benchmark::State& state) { in BM_elf_create_compressed()
81 static void InitializeBuildId(benchmark::State& state, unwindstack::Maps& maps, in InitializeBuildId()
102 static void BM_elf_get_build_id_from_object(benchmark::State& state) { in BM_elf_get_build_id_from_object()
121 benchmark::DoNotOptimize(build_id_map_info->GetBuildID()); in BM_elf_get_build_id_from_object()
126 static void BM_elf_get_build_id_from_file(benchmark::State& state) { in BM_elf_get_build_id_from_file()
139 benchmark::DoNotOptimize(build_id_map_info->GetBuildID()); in BM_elf_get_build_id_from_file()
DMapsBenchmark.cpp56 static void ReparseBenchmark(benchmark::State& state, const char* maps1, size_t maps1_total, in ReparseBenchmark()
79 void BM_local_updatable_maps_reparse_double_initial_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_small()
90 void BM_local_updatable_maps_reparse_double_initial_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_large()
101 void BM_local_updatable_maps_reparse_same_maps_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_small()
110 void BM_local_updatable_maps_reparse_same_maps_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_large()
118 void BM_local_updatable_maps_reparse_few_extra_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_extra_small()
129 void BM_local_updatable_maps_reparse_few_extra_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_extra_large()
140 void BM_local_updatable_maps_reparse_few_less_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_less_small()
151 void BM_local_updatable_maps_reparse_few_less_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_less_large()
Dlocal_unwind_benchmarks.cpp60 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) { in Run()
85 static void BM_local_unwind_uncached_process_memory(benchmark::State& state) { in BM_local_unwind_uncached_process_memory()
97 static void BM_local_unwind_cached_process_memory(benchmark::State& state) { in BM_local_unwind_cached_process_memory()
109 static void BM_local_unwind_local_updatable_maps_uncached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_uncached()
121 static void BM_local_unwind_local_updatable_maps_cached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_cached()
133 static void BM_local_unwind_local_updatable_maps_thread_cached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_thread_cached()
145 static void BM_local_unwind_local_unwinder(benchmark::State& state) { in BM_local_unwind_local_unwinder()
155 static void BM_local_unwind_uncached_process_memory_no_func_names(benchmark::State& state) { in BM_local_unwind_uncached_process_memory_no_func_names()
167 static void BM_local_unwind_cached_process_memory_no_func_names(benchmark::State& state) { in BM_local_unwind_cached_process_memory_no_func_names()
179 static void BM_local_unwind_local_updatable_maps_uncached_no_func_names(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_uncached_no_func_names()
[all …]
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp53 class DnsFixture : public ::benchmark::Fixture {
61 void SetUp(const ::benchmark::State& state) override { in SetUp()
76 void TearDown(const ::benchmark::State& state) override { in TearDown()
86 void benchmark(benchmark::State& state) { in benchmark() function in DnsFixture
104 BENCHMARK_DEFINE_F(DnsFixture, getaddrinfo)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
105 benchmark(state); in BENCHMARK_DEFINE_F()
Dbpf_benchmark.cpp30 class BpfBenchMark : public ::benchmark::Fixture {
36 BENCHMARK_DEFINE_F(BpfBenchMark, MapWriteNewEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
43 BENCHMARK_DEFINE_F(BpfBenchMark, MapUpdateEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
54 BENCHMARK_DEFINE_F(BpfBenchMark, MapDeleteAddEntry)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
67 BENCHMARK_DEFINE_F(BpfBenchMark, WaitForRcu)(benchmark::State& state) { in BENCHMARK_DEFINE_F()
Dconnect_benchmark.cpp99 static void ipv4_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv4_loopback()
156 static void ipv6_loopback(benchmark::State& state, const bool waitBetweenRuns) { in ipv6_loopback()
213 static void run(decltype(ipv4_loopback) benchmarkFunction, ::benchmark::State& state, in run()
223 static void ipv4_no_load(::benchmark::State& state) { in ipv4_no_load()
229 static void ipv4_high_load(::benchmark::State& state) { in ipv4_high_load()
235 static void ipv6_no_load(::benchmark::State& state) { in ipv6_no_load()
241 static void ipv6_high_load(::benchmark::State& state) { in ipv6_high_load()
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc29 using ::benchmark::State;
61 class BM_OsiAlarmTimer : public ::benchmark::Fixture {
64 ::benchmark::Fixture::SetUp(st); in SetUp()
72 ::benchmark::Fixture::TearDown(st); in TearDown()
101 class BM_AlarmTaskTimer : public ::benchmark::Fixture {
104 ::benchmark::Fixture::SetUp(st); in SetUp()
122 ::benchmark::Fixture::TearDown(st); in TearDown()
156 class BM_OsiPeriodicAlarmTimer : public ::benchmark::Fixture {
159 ::benchmark::Fixture::SetUp(st); in SetUp()
172 ::benchmark::Fixture::TearDown(st); in TearDown()
[all …]
/system/incremental_delivery/incfs/tests/
Dhardening_benchmark.cpp42 static void TestEmpty(benchmark::State& state) { in TestEmpty()
45 benchmark::DoNotOptimize(val += 1); in TestEmpty()
50 static void TestSignal(benchmark::State& state) { in TestSignal()
62 static void TestRead(benchmark::State& state) { in TestRead()
73 static void TestMapPtrRaw(benchmark::State& state) { in TestMapPtrRaw()
87 static void TestMapPtr(benchmark::State& state) { in TestMapPtr()
98 static void TestAccess(benchmark::State& state) { in TestAccess()
108 static void TestAccessFast(benchmark::State& state) { in TestAccessFast()
120 static void TestAccessVal(benchmark::State& state) { in TestAccessVal()
130 static void TestAccessNested(benchmark::State& state) { in TestAccessNested()
[all …]
/system/core/libutils/
DVector_benchmark.cpp21 void BM_fill_android_vector(benchmark::State& state) { in BM_fill_android_vector()
29 void BM_fill_std_vector(benchmark::State& state) { in BM_fill_std_vector()
37 void BM_prepend_android_vector(benchmark::State& state) { in BM_prepend_android_vector()
45 void BM_prepend_std_vector(benchmark::State& state) { in BM_prepend_std_vector()
/system/bt/gd/
Dbenchmark.cc20 ::benchmark::Initialize(&argc, argv); in main()
21 if (::benchmark::ReportUnrecognizedArguments(argc, argv)) { in main()
24 ::benchmark::RunSpecifiedBenchmarks(); in main()
/system/core/init/
Dsubcontext_benchmark.cpp25 static void BenchmarkSuccess(benchmark::State& state) { in BenchmarkSuccess()
68 ::benchmark::Initialize(&argc, argv); in main()
69 if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; in main()
70 ::benchmark::RunSpecifiedBenchmarks(); in main()
/system/logging/liblog/tests/
Dliblog_benchmark.cpp58 static void BM_log_maximum_retry(benchmark::State& state) { in BM_log_maximum_retry()
71 static void BM_log_maximum(benchmark::State& state) { in BM_log_maximum()
89 static void BM_clock_overhead(benchmark::State& state) { in BM_clock_overhead()
97 static void do_clock_overhead(benchmark::State& state, clockid_t clk_id) { in do_clock_overhead()
104 static void BM_time_clock_gettime_REALTIME(benchmark::State& state) { in BM_time_clock_gettime_REALTIME()
109 static void BM_time_clock_gettime_MONOTONIC(benchmark::State& state) { in BM_time_clock_gettime_MONOTONIC()
114 static void BM_time_clock_gettime_MONOTONIC_syscall(benchmark::State& state) { in BM_time_clock_gettime_MONOTONIC_syscall()
122 static void BM_time_clock_gettime_MONOTONIC_RAW(benchmark::State& state) { in BM_time_clock_gettime_MONOTONIC_RAW()
127 static void BM_time_clock_gettime_BOOTTIME(benchmark::State& state) { in BM_time_clock_gettime_BOOTTIME()
132 static void BM_time_clock_getres_MONOTONIC(benchmark::State& state) { in BM_time_clock_getres_MONOTONIC()
[all …]
/system/libprocinfo/
Dprocess_map_benchmark.cpp31 static void BM_ReadMapFile(benchmark::State& state) { in BM_ReadMapFile()
42 static void BM_unwindstack_FileMaps(benchmark::State& state) { in BM_unwindstack_FileMaps()
52 static void BM_unwindstack_BufferMaps(benchmark::State& state) { in BM_unwindstack_BufferMaps()
64 static void BM_backtrace_BacktraceMap(benchmark::State& state) { in BM_backtrace_BacktraceMap()
/system/libhwbinder/vts/performance/
DBenchmark.cpp70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { in BM_sendVec()
84 static void BM_sendVec_passthrough(benchmark::State& state) { in BM_sendVec_passthrough()
96 static void BM_sendVec_binderize(benchmark::State& state) { in BM_sendVec_binderize()
132 ::benchmark::Initialize(&argc, argv); in main()
137 ::benchmark::RunSpecifiedBenchmarks(); in main()
DBenchmark_binder.cpp73 static void BM_sendVec_binder(benchmark::State& state) { in BM_sendVec_binder()
96 ::benchmark::Initialize(&argc, argv); in main()
101 ::benchmark::RunSpecifiedBenchmarks(); in main()
/system/memory/libmeminfo/
Dlibmeminfo_benchmark.cpp117 static void BM_ReadMemInfo_old(benchmark::State& state) { in BM_ReadMemInfo_old()
173 static void BM_ReadMemInfo_new(benchmark::State& state) { in BM_ReadMemInfo_new()
268 static void BM_ZramTotal_old(benchmark::State& state) { in BM_ZramTotal_old()
277 static void BM_ZramTotal_new(benchmark::State& state) { in BM_ZramTotal_new()
287 static void BM_MemInfoWithZram_old(benchmark::State& state) { in BM_MemInfoWithZram_old()
346 static void BM_MemInfoWithZram_new(benchmark::State& state) { in BM_MemInfoWithZram_new()
448 static void BM_VmallocInfo_old_fixed(benchmark::State& state) { in BM_VmallocInfo_old_fixed()
458 static void BM_VmallocInfo_new(benchmark::State& state) { in BM_VmallocInfo_new()
527 static void BM_SmapsRollup_old(benchmark::State& state) { in BM_SmapsRollup_old()
538 static void BM_SmapsRollup_new(benchmark::State& state) { in BM_SmapsRollup_new()
[all …]
/system/bt/gd/os/
Dthread_benchmark.cc26 using ::benchmark::State;
33 class BM_ThreadPerformance : public ::benchmark::Fixture {
36 benchmark::Fixture::SetUp(st); in SetUp()
41 benchmark::Fixture::TearDown(st); in TearDown()
/system/libziparchive/
Dzip_archive_benchmark.cpp52 static void FindEntry_no_match(benchmark::State& state) { in FindEntry_no_match()
71 static void Iterate_all_files(benchmark::State& state) { in Iterate_all_files()
89 static void StartAlignedEntry(benchmark::State& state) { in StartAlignedEntry()
111 static void ExtractEntry(benchmark::State& state) { in ExtractEntry()

12