/frameworks/base/libs/hwui/tests/microbench/ |
LinearAllocatorBench.cpp | 17 #include <benchmark/benchmark.h> 26 static void BM_LinearStdAllocator_vectorBaseline(benchmark::State& state) { 32 benchmark::DoNotOptimize(&v); 35 BENCHMARK(BM_LinearStdAllocator_vectorBaseline); 37 static void BM_LinearStdAllocator_vector(benchmark::State& state) { 45 benchmark::DoNotOptimize(&v); 48 BENCHMARK(BM_LinearStdAllocator_vector);
|
RenderNodeBench.cpp | 17 #include <benchmark/benchmark.h> 24 void BM_RenderNode_create(benchmark::State& state) { 28 benchmark::DoNotOptimize(node); 32 BENCHMARK(BM_RenderNode_create);
|
DisplayListCanvasBench.cpp | 17 #include <benchmark/benchmark.h> 26 void BM_DisplayList_alloc(benchmark::State& benchState) { 29 benchmark::DoNotOptimize(displayList); 33 BENCHMARK(BM_DisplayList_alloc); 35 void BM_DisplayList_alloc_theoretical(benchmark::State& benchState) { 38 benchmark::DoNotOptimize(displayList); 42 BENCHMARK(BM_DisplayList_alloc_theoretical); 44 void BM_DisplayListCanvas_record_empty(benchmark::State& benchState) { 50 benchmark::DoNotOptimize(canvas.get()) [all...] |
PathParserBench.cpp | 17 #include <benchmark/benchmark.h> 31 void BM_PathParser_parseStringPathForSkPath(benchmark::State& state) { 37 benchmark::DoNotOptimize(&result); 38 benchmark::DoNotOptimize(&skPath); 41 BENCHMARK(BM_PathParser_parseStringPathForSkPath); 43 void BM_PathParser_parseStringPathForPathData(benchmark::State& state) { 49 benchmark::DoNotOptimize(&result); 50 benchmark::DoNotOptimize(&outData); 53 BENCHMARK(BM_PathParser_parseStringPathForPathData) [all...] |
/frameworks/minikin/tests/perftests/ |
FontLanguage.cpp | 18 #include <benchmark/benchmark.h> 22 static void BM_Locale_en_US(benchmark::State& state) { 27 BENCHMARK(BM_Locale_en_US); 29 static void BM_Locale_en_Latn_US(benchmark::State& state) { 34 BENCHMARK(BM_Locale_en_Latn_US); 36 static void BM_Locale_en_Latn_US_u_em_emoji(benchmark::State& state) { 41 BENCHMARK(BM_Locale_en_Latn_US_u_em_emoji);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/src/ |
sleep.h | 4 namespace benchmark { namespace 13 } // end namespace benchmark
|
benchmark_register.cc | 15 #include "benchmark/benchmark.h" 47 namespace benchmark { namespace 52 // The size of a benchmark family determines is the number of inputs to repeat 53 // the benchmark on. If this is "large" then warn the user during configuration. 64 // benchmark identifies a family of related benchmarks to run. 69 // Registers a benchmark family and returns the index assigned to it. 70 size_t AddBenchmark(std::unique_ptr<Benchmark> family); 72 // Extract the list of benchmark instances that match the specified 75 std::vector<Benchmark::Instance>* benchmarks [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/ |
diagnostics_test.cc | 14 #include "benchmark/benchmark_api.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 benchmark::internal::GetAbortHandler() = &TestHandler; 62 benchmark::Initialize(&argc, argv); 63 benchmark::RunSpecifiedBenchmarks();
|
multiple_ranges_test.cc | 1 #include "benchmark/benchmark.h" 6 class MultipleRangesFixture : public ::benchmark::Fixture { 29 void SetUp(const ::benchmark::State& state) { 45 BENCHMARK_DEFINE_F(MultipleRangesFixture, Empty)(benchmark::State& state) { 49 benchmark::DoNotOptimize(x); 59 void BM_CheckDefaultArgument(benchmark::State& state) { 66 BENCHMARK(BM_CheckDefaultArgument)->Ranges({{1, 5}, {6, 10}}); 68 static void BM_MultipleRanges(benchmark::State& st) { 72 BENCHMARK(BM_MultipleRanges)->Ranges({{5, 5}, {6, 6}}) [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(depth)); 80 BENCHMARK(BM_CalculatePi)->Threads(8); 81 BENCHMARK(BM_CalculatePi)->ThreadRange(1, 32) [all...] |
fixture_test.cc | 2 #include "benchmark/benchmark.h" 7 class MyFixture : public ::benchmark::Fixture { 9 void SetUp(const ::benchmark::State& state) { 16 void TearDown(const ::benchmark::State& state) { 28 BENCHMARK_F(MyFixture, Foo)(benchmark::State &st) { 35 BENCHMARK_DEFINE_F(MyFixture, Bar)(benchmark::State& st) {
|
/external/google-benchmark/test/ |
multiple_ranges_test.cc | 1 #include "benchmark/benchmark.h" 6 class MultipleRangesFixture : public ::benchmark::Fixture { 29 void SetUp(const ::benchmark::State& state) { 45 BENCHMARK_DEFINE_F(MultipleRangesFixture, Empty)(benchmark::State& state) { 49 benchmark::DoNotOptimize(x); 59 void BM_CheckDefaultArgument(benchmark::State& state) { 66 BENCHMARK(BM_CheckDefaultArgument)->Ranges({{1, 5}, {6, 10}}); 68 static void BM_MultipleRanges(benchmark::State& st) { 72 BENCHMARK(BM_MultipleRanges)->Ranges({{5, 5}, {6, 6}}) [all...] |
fixture_test.cc | 2 #include "benchmark/benchmark.h" 7 class MyFixture : public ::benchmark::Fixture { 9 void SetUp(const ::benchmark::State& state) { 16 void TearDown(const ::benchmark::State& state) { 28 BENCHMARK_F(MyFixture, Foo)(benchmark::State &st) { 35 BENCHMARK_DEFINE_F(MyFixture, Bar)(benchmark::State& st) {
|
/external/libcxx/utils/google-benchmark/test/ |
multiple_ranges_test.cc | 1 #include "benchmark/benchmark.h" 6 class MultipleRangesFixture : public ::benchmark::Fixture { 29 void SetUp(const ::benchmark::State& state) { 45 BENCHMARK_DEFINE_F(MultipleRangesFixture, Empty)(benchmark::State& state) { 49 benchmark::DoNotOptimize(x); 59 void BM_CheckDefaultArgument(benchmark::State& state) { 66 BENCHMARK(BM_CheckDefaultArgument)->Ranges({{1, 5}, {6, 10}}); 68 static void BM_MultipleRanges(benchmark::State& st) { 72 BENCHMARK(BM_MultipleRanges)->Ranges({{5, 5}, {6, 6}}) [all...] |
fixture_test.cc | 2 #include "benchmark/benchmark.h" 7 class MyFixture : public ::benchmark::Fixture { 9 void SetUp(const ::benchmark::State& state) { 16 void TearDown(const ::benchmark::State& state) { 28 BENCHMARK_F(MyFixture, Foo)(benchmark::State &st) { 35 BENCHMARK_DEFINE_F(MyFixture, Bar)(benchmark::State& st) {
|
/prebuilts/go/darwin-x86/test/bench/go1/ |
regexp_test.go | 13 // benchmark based on regexp/exec_test.go 33 func benchmark(b *testing.B, re string, n int) { func 52 func BenchmarkRegexpMatchEasy0_32(b *testing.B) { benchmark(b, easy0, 32<<0) } 53 func BenchmarkRegexpMatchEasy0_1K(b *testing.B) { benchmark(b, easy0, 1<<10) } 54 func BenchmarkRegexpMatchEasy1_32(b *testing.B) { benchmark(b, easy1, 32<<0) } 55 func BenchmarkRegexpMatchEasy1_1K(b *testing.B) { benchmark(b, easy1, 1<<10) } 56 func BenchmarkRegexpMatchMedium_32(b *testing.B) { benchmark(b, medium, 1<<0) } 57 func BenchmarkRegexpMatchMedium_1K(b *testing.B) { benchmark(b, medium, 1<<10) } 58 func BenchmarkRegexpMatchHard_32(b *testing.B) { benchmark(b, hard, 32<<0) } 59 func BenchmarkRegexpMatchHard_1K(b *testing.B) { benchmark(b, hard, 1<<10) [all...] |
/prebuilts/go/linux-x86/test/bench/go1/ |
regexp_test.go | 13 // benchmark based on regexp/exec_test.go 33 func benchmark(b *testing.B, re string, n int) { func 52 func BenchmarkRegexpMatchEasy0_32(b *testing.B) { benchmark(b, easy0, 32<<0) } 53 func BenchmarkRegexpMatchEasy0_1K(b *testing.B) { benchmark(b, easy0, 1<<10) } 54 func BenchmarkRegexpMatchEasy1_32(b *testing.B) { benchmark(b, easy1, 32<<0) } 55 func BenchmarkRegexpMatchEasy1_1K(b *testing.B) { benchmark(b, easy1, 1<<10) } 56 func BenchmarkRegexpMatchMedium_32(b *testing.B) { benchmark(b, medium, 1<<0) } 57 func BenchmarkRegexpMatchMedium_1K(b *testing.B) { benchmark(b, medium, 1<<10) } 58 func BenchmarkRegexpMatchHard_32(b *testing.B) { benchmark(b, hard, 32<<0) } 59 func BenchmarkRegexpMatchHard_1K(b *testing.B) { benchmark(b, hard, 1<<10) [all...] |
/external/google-benchmark/include/benchmark/ |
benchmark.h | 20 static void BM_StringCreation(benchmark::State& state) { 25 // Register the function as a benchmark 26 BENCHMARK(BM_StringCreation); 28 // Define another benchmark 29 static void BM_StringCopy(benchmark::State& state) { 34 BENCHMARK(BM_StringCopy); 43 benchmark::Initialize(&argc, argv); 44 benchmark::RunSpecifiedBenchmarks(); 54 static void BM_memcpy(benchmark::State& state) { 63 BENCHMARK(BM_memcpy)->Arg(8)->Arg(64)->Arg(512)->Arg(1<<10)->Arg(8<<10) 242 namespace benchmark { namespace [all...] |
/external/libcxx/utils/google-benchmark/include/benchmark/ |
benchmark.h | 20 static void BM_StringCreation(benchmark::State& state) { 25 // Register the function as a benchmark 26 BENCHMARK(BM_StringCreation); 28 // Define another benchmark 29 static void BM_StringCopy(benchmark::State& state) { 34 BENCHMARK(BM_StringCopy); 43 benchmark::Initialize(&argc, argv); 44 benchmark::RunSpecifiedBenchmarks(); 54 static void BM_memcpy(benchmark::State& state) { 63 BENCHMARK(BM_memcpy)->Arg(8)->Arg(64)->Arg(512)->Arg(1<<10)->Arg(8<<10) 242 namespace benchmark { namespace [all...] |
/bionic/benchmarks/ |
pthread_benchmark.cpp | 19 #include <benchmark/benchmark.h> 25 static void BM_pthread_self(benchmark::State& state) { 32 static void BM_pthread_getspecific(benchmark::State& state) { 44 static void BM_pthread_setspecific(benchmark::State& state) { 59 static void BM_pthread_once(benchmark::State& state) { 69 static void BM_pthread_mutex_lock(benchmark::State& state) { 79 static void BM_pthread_mutex_lock_ERRORCHECK(benchmark::State& state) { 89 static void BM_pthread_mutex_lock_RECURSIVE(benchmark::State& state) { 118 static void BM_pthread_mutex_lock_PI(benchmark::State& state) [all...] |
/external/tensorflow/tensorflow/docs_src/community/ |
benchmarks.md | 3 This guide contains instructions for defining and running a TensorFlow benchmark. These benchmarks store output in [TestResults](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/test_log.proto) format. If these benchmarks are added to TensorFlow github repo, then we will run them daily with our continuous build and display a graph on our dashboard: https://benchmarks-dot-tensorflow-testing.appspot.com/. 8 ## Defining a Benchmark 10 Defining a TensorFlow benchmark requires extending from `tf.test.Benchmark` 11 class and calling `self.report_benchmark` method. For example, take a look at the sample benchmark code below: 19 # Define a class that extends from tf.test.Benchmark. 20 class SampleBenchmark(tf.test.Benchmark): 22 # Note: benchmark method name must start with `benchmark`. 45 See the full example for [SampleBenchmark](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/benchmark/) [all...] |
/external/tensorflow/tensorflow/core/platform/ |
test_benchmark.h | 27 #include "tensorflow/core/platform/google/build_config/benchmark.h" 30 #define BENCHMARK(n) \ 31 static ::tensorflow::testing::Benchmark* TF_BENCHMARK_CONCAT( \ 33 (new ::tensorflow::testing::Benchmark(#n, (n))) 44 using ::testing::Benchmark; 48 class Benchmark { 50 Benchmark(const char* name, void (*fn)(int)); 51 Benchmark(const char* name, void (*fn)(int, int)); 52 Benchmark(const char* name, void (*fn)(int, int, int)); 54 Benchmark* Arg(int x) [all...] |
/frameworks/base/libs/androidfw/tests/ |
AssetManager2_bench.cpp | 17 #include "benchmark/benchmark.h" 38 static void BM_AssetManagerLoadAssets(benchmark::State& state) { 46 BENCHMARK(BM_AssetManagerLoadAssets); 48 static void BM_AssetManagerLoadAssetsOld(benchmark::State& state) { 59 BENCHMARK(BM_AssetManagerLoadAssetsOld); 61 static void BM_AssetManagerLoadFrameworkAssets(benchmark::State& state) { 69 BENCHMARK(BM_AssetManagerLoadFrameworkAssets); 71 static void BM_AssetManagerLoadFrameworkAssetsOld(benchmark::State& state) { 82 BENCHMARK(BM_AssetManagerLoadFrameworkAssetsOld) [all...] |
/external/autotest/tko/ |
machine_benchmark.cgi | 27 benchmark = row[0] 28 testname = re.sub(r'\..*', '', benchmark) 29 all_benchmarks.append(benchmark) 33 for benchmark in all_benchmarks: 35 where_tests = { 'subdir': benchmark, 'status_word' : 'GOOD' } 42 available_params.add("%s - %s" % (benchmark, 86 for benchmark in benchmark_key: 88 where = { 'subdir': benchmark, 'status_word' : 'GOOD' } 94 benchmark_data[benchmark] = data 99 header_row = [ display.box('Benchmark', header=True) [all...] |
/external/capstone/suite/ |
benchmark.py | 3 # Simple benchmark for Capstone by disassembling random code. By Nguyen Anh Quynh, 2014 5 # ./suite/benchmark.py --> Benchmark all archs 6 # ./suite/benchmark.py x86 --> Benchmark all X86 (all 16bit, 32bit, 64bit) 7 # ./suite/benchmark.py x86-32 --> Benchmark X86-32 arch only 8 # ./suite/benchmark.py arm --> Benchmark all ARM (arm, thumb) 9 # ./suite/benchmark.py aarch64 --> Benchmark ARM-6 [all...] |