Home
last modified time | relevance | path

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

12345678910>>...29

/external/toolchain-utils/
Dupdate_telemetry_defaults.py46 def ListCurrentDefaults(self, benchmark=all): argument
52 if benchmark == all:
59 elif benchmark in self._defaults:
60 results = self._defaults[benchmark]
61 out_str = benchmark + ' : '
66 print("Error: Unrecognized benchmark '%s'" % benchmark)
68 def AddDefault(self, benchmark, result): argument
69 if benchmark in self._defaults:
70 resultList = self._defaults[benchmark]
74 self._defaults[benchmark] = resultList
[all …]
/external/google-benchmark/test/
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 …]
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 …]
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 …]
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 …]
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()
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()
/external/libcxx/utils/google-benchmark/test/
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 …]
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 …]
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 …]
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 …]
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()
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()
/external/libcxx/benchmarks/
DContainerBenchmarks.hpp12 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) { in BM_ConstructIterIter()
16 benchmark::DoNotOptimize(&in); in BM_ConstructIterIter()
19 benchmark::DoNotOptimize(c.data()); in BM_ConstructIterIter()
24 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValue()
30 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValue()
32 benchmark::ClobberMemory(); in BM_InsertValue()
37 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValueRehash()
44 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValueRehash()
46 benchmark::ClobberMemory(); in BM_InsertValueRehash()
52 void BM_InsertDuplicate(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertDuplicate()
[all …]
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 …]
Dfunction.bench.cpp108 static void run(benchmark::State& state) { in run()
111 benchmark::DoNotOptimize(MakeFunction(FunctionType(), true)); in run()
125 static void run(benchmark::State& state) { in run()
128 benchmark::DoNotOptimize(value); in run()
130 benchmark::DoNotOptimize(copy); in run()
139 static void run(benchmark::State& state) { in run()
143 benchmark::DoNotOptimize(values); in run()
144 benchmark::DoNotOptimize(values[i ^ 1] = std::move(values[i])); in run()
156 static void run(benchmark::State& state) { in run()
159 benchmark::DoNotOptimize(values); in run()
[all …]
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 …]
/external/eigen/bench/
Dbenchmark_suite4 $CXX -O3 -I .. -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark >/dev/null
6 $CXX -O3 -I .. benchmark.cpp -o benchmark && time ./benchmark >/dev/null
8 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR -DNDEBUG benchmark.cpp -o benchmark && time ./benchmark
10 $CXX -O3 -I .. -DEIGEN_DEFAULT_TO_ROW_MAJOR benchmark.cpp -o benchmark && time ./benchmark >/dev/nu…
/external/grpc-grpc/src/csharp/Grpc.Microbenchmarks/
DProgram.cs76 var benchmark = new CompletionRegistryBenchmark(); in RunCompletionRegistryBenchmark()
77 benchmark.Init(); in RunCompletionRegistryBenchmark()
82 benchmark.Run(threadCount, 4 * 1000 * 1000, useSharedRegistry); in RunCompletionRegistryBenchmark()
85 benchmark.Cleanup(); in RunCompletionRegistryBenchmark()
90 var benchmark = new PInvokeByteArrayBenchmark(); in RunPInvokeByteArrayBenchmark()
91 benchmark.Init(); in RunPInvokeByteArrayBenchmark()
94 benchmark.Run(threadCount, 4 * 1000 * 1000, 0); in RunPInvokeByteArrayBenchmark()
96 benchmark.Cleanup(); in RunPInvokeByteArrayBenchmark()
101 var benchmark = new SendMessageBenchmark(); in RunSendMessageBenchmark()
102 benchmark.Init(); in RunSendMessageBenchmark()
[all …]
/external/google-benchmark/
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 …]
/external/google-fruit/extras/benchmark/
DREADME.md4 Fruit contains some code to benchmark various metrics (e.g. performance, compile time, executable s…
13 $ ~/projects/fruit/extras/benchmark/run_benchmarks.py \
14 --continue-benchmark=true \
15 --benchmark-definition ~/projects/fruit/extras/benchmark/suites/fruit_full.yml
18 --fruit-benchmark-sources-dir ~/projects/fruit \
22 Once the benchmark run completes, you can format the results using some pre-defined tables, see the…
24 The following benchmark suites are defined:
33 …`fruit_full.yml`. This is a quick benchmark that can used during development of performance optimi…
36 * `boost_di`: unlike the others, this benchmark suite exercises the Boost.DI library (still in boos…
42 benchmark results generated using `run_benchmarks.py`.
[all …]
/external/libcxx/utils/google-benchmark/
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 …]
/external/grpc-grpc/cmake/
Dbenchmark.cmake17 set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark)
20 add_subdirectory(${BENCHMARK_ROOT_DIR} third_party/benchmark)
21 if(TARGET benchmark)
22 set(_gRPC_BENCHMARK_LIBRARIES benchmark)
29 # Use "CONFIG" as there is no built-in cmake module for benchmark.
30 find_package(benchmark REQUIRED CONFIG)
31 if(TARGET benchmark::benchmark)
32 set(_gRPC_BENCHMARK_LIBRARIES benchmark::benchmark)
34 …get_target_property(_gRPC_BENCHMARK_INCLUDE_DIR benchmark::benchmark INTERFACE_INCLUDE_DIRECTORIES)
36 set(_gRPC_FIND_BENCHMARK "if(NOT benchmark_FOUND)\n find_package(benchmark CONFIG)\nendif()")
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_metadata.cc32 static void BM_SliceFromStatic(benchmark::State& state) { in BM_SliceFromStatic()
35 benchmark::DoNotOptimize(grpc_slice_from_static_string("abc")); in BM_SliceFromStatic()
41 static void BM_SliceFromCopied(benchmark::State& state) { in BM_SliceFromCopied()
50 static void BM_SliceIntern(benchmark::State& state) { in BM_SliceIntern()
60 static void BM_SliceReIntern(benchmark::State& state) { in BM_SliceReIntern()
71 static void BM_SliceInternStaticMetadata(benchmark::State& state) { in BM_SliceInternStaticMetadata()
80 static void BM_SliceInternEqualToStaticMetadata(benchmark::State& state) { in BM_SliceInternEqualToStaticMetadata()
90 static void BM_MetadataFromNonInternedSlices(benchmark::State& state) { in BM_MetadataFromNonInternedSlices()
103 static void BM_MetadataFromInternedSlices(benchmark::State& state) { in BM_MetadataFromInternedSlices()
119 benchmark::State& state) { in BM_MetadataFromInternedSlicesAlreadyInIndex()
[all …]
/external/toolchain-utils/crosperf/
Dbenchmark_run.py32 def __init__(self, name, benchmark, label, iteration, cache_conditions, argument
38 self.benchmark = benchmark
52 self.test_args = benchmark.test_args
70 self.benchmark.test_name, self.iteration, self.test_args,
74 self.benchmark.suite, self.benchmark.show_all_results,
75 self.benchmark.run_local)
98 retval, self.benchmark.test_name, self.benchmark.suite)
177 if self.benchmark.perf_args and self.benchmark.suite == 'telemetry':
179 self.benchmark.perf_args = ''
181 if self.benchmark.perf_args and self.benchmark.suite == 'test_that':
[all …]

12345678910>>...29