/frameworks/base/libs/androidfw/tests/ |
Theme_bench.cpp | 17 #include "benchmark/benchmark.h" 30 static void BM_ThemeApplyStyleFramework(benchmark::State& state) { 45 BENCHMARK(BM_ThemeApplyStyleFramework); 47 static void BM_ThemeApplyStyleFrameworkOld(benchmark::State& state) { 62 BENCHMARK(BM_ThemeApplyStyleFrameworkOld); 64 static void BM_ThemeGetAttribute(benchmark::State& state) { 80 BENCHMARK(BM_ThemeGetAttribute); 82 static void BM_ThemeGetAttributeOld(benchmark::State& state) { 97 BENCHMARK(BM_ThemeGetAttributeOld) [all...] |
/frameworks/base/libs/hwui/tests/microbench/ |
ShadowBench.cpp | 17 #include <benchmark/benchmark.h> 70 void BM_TessellateShadows_roundrect_opaque(benchmark::State& state) { 80 benchmark::DoNotOptimize(&ambient); 81 benchmark::DoNotOptimize(&spot); 84 BENCHMARK(BM_TessellateShadows_roundrect_opaque); 86 void BM_TessellateShadows_roundrect_translucent(benchmark::State& state) { 97 benchmark::DoNotOptimize(ambient.get()); 98 benchmark::DoNotOptimize(spot.get()); 101 BENCHMARK(BM_TessellateShadows_roundrect_translucent) [all...] |
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
BenchmarkListAdapter.java | 17 package com.android.benchmark.app; 27 import com.android.benchmark.registry.BenchmarkGroup; 28 import com.android.benchmark.registry.BenchmarkRegistry; 29 import com.android.benchmark.R; 102 BenchmarkGroup.Benchmark benchmark = local 103 (BenchmarkGroup.Benchmark) getChild(groupPosition, childPosition); 109 name.setText(benchmark.getName()); 111 enabledBox.setOnClickListener(benchmark); 112 enabledBox.setChecked(benchmark.isEnabled()) [all...] |
/bionic/benchmarks/ |
math_benchmark.cpp | 20 #include <benchmark/benchmark.h> 27 static void SetLabel(benchmark::State& state) { 35 static void BM_math_sqrt(benchmark::State& state) { 44 static void BM_math_log10(benchmark::State& state) { 53 static void BM_math_logb(benchmark::State& state) { 62 static void BM_math_isfinite_macro(benchmark::State& state) { 72 static void BM_math_isfinite(benchmark::State& state) { 82 static void BM_math_isinf_macro(benchmark::State& state) { 92 static void BM_math_isinf(benchmark::State& state) [all...] |
stdio_benchmark.cpp | 24 #include <benchmark/benchmark.h> 38 void ReadWriteTest(benchmark::State& state, Fn f, bool buffered) { 60 void BM_stdio_fread(benchmark::State& state) { 65 void BM_stdio_fwrite(benchmark::State& state) { 70 void BM_stdio_fread_unbuffered(benchmark::State& state) { 75 void BM_stdio_fwrite_unbuffered(benchmark::State& state) { 81 static void FopenFgetlnFclose(benchmark::State& state, bool no_locking) { 94 static void BM_stdio_fopen_fgetln_fclose_locking(benchmark::State& state) { 99 void BM_stdio_fopen_fgetln_fclose_no_locking(benchmark::State& state) [all...] |
/external/caliper/examples/src/main/java/examples/ |
ExpensiveObjectsBenchmark.java | 19 import com.google.caliper.Benchmark; 30 @Benchmark void newDecimalFormatSymbols(int reps) { 36 @Benchmark void clonedDecimalFormatSymbols(int reps) { 43 @Benchmark void newNumberFormat(int reps) { 49 @Benchmark void clonedNumberFormat(int reps) { 56 @Benchmark void newSimpleDateFormat(int reps) { 62 @Benchmark void clonedSimpleDateFormat(int reps) {
|
BitSetBenchmark.java | 21 import com.google.caliper.Benchmark; 27 * A simple example of a benchmark for BitSet showing some of the issues with 35 * 0% Scenario{vm=java, benchmark=SetBitSetX64} 233.45ns; ?=0.31ns @ 3 trials 36 * 20% Scenario{vm=java, benchmark=SetMaskX64} 116.62ns; ?=0.09ns @ 3 trials 37 * 40% Scenario{vm=java, benchmark=CharsToBitSet} 748.40ns; ?=23.52ns @ 10 trials 38 * 60% Scenario{vm=java, benchmark=CharsToMask} 198.55ns; ?=9.46ns @ 10 trials 39 * 80% Scenario{vm=java, benchmark=BaselineIteration} 67.85ns; ?=0.44ns @ 3 trials 41 * benchmark ns logarithmic runtime 49 * <p>Initially things look simple. The {@link #setBitSetX64(int)} benchmark 52 * 'real world' benchmark was devised in an attempt to back up these results [all...] |
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/ |
CaliperClientSocketBenchmark.java | 21 import com.google.caliper.Benchmark; 26 * Benchmark for comparing performance of client socket implementations. 45 private ClientSocketBenchmark benchmark; field in class:CaliperClientSocketBenchmark 49 benchmark = new ClientSocketBenchmark(config); 54 benchmark.close(); 57 @Benchmark 59 benchmark.time(numMessages);
|
CaliperAlpnBenchmark.java | 20 import com.google.caliper.Benchmark; 41 private EngineHandshakeBenchmark benchmark; field in class:CaliperAlpnBenchmark 45 benchmark = new EngineHandshakeBenchmark(config); 48 @Benchmark 51 benchmark.handshake();
|
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
JmhAlpnBenchmark.java | 21 import org.openjdk.jmh.annotations.Benchmark; 31 * Benchmark comparing ALPN performance between Conscrypt and Netty. 33 @State(Scope.Benchmark) 49 private EngineHandshakeBenchmark benchmark; field in class:JmhAlpnBenchmark 53 benchmark = new EngineHandshakeBenchmark(config); 56 @Benchmark 58 benchmark.handshake();
|
JmhCipherEncryptBenchmark.java | 20 import org.openjdk.jmh.annotations.Benchmark; 31 * Benchmark comparing Cipher creation performance. 33 @State(Scope.Benchmark) 48 private CipherEncryptBenchmark benchmark; field in class:JmhCipherEncryptBenchmark 52 benchmark = new CipherEncryptBenchmark(config); 55 @Benchmark 57 bh.consume(benchmark.encrypt());
|
JmhClientSocketBenchmark.java | 21 import org.openjdk.jmh.annotations.Benchmark; 32 * Benchmark for comparing performance of client socket implementations. All benchmarks use Netty 35 @State(Scope.Benchmark) 41 * consuming CPU in the benchmark method. 71 private ClientSocketBenchmark benchmark; field in class:JmhClientSocketBenchmark 75 benchmark = new ClientSocketBenchmark(config); 80 benchmark.close(); 83 @Benchmark 86 benchmark.throughput();
|
JmhServerSocketBenchmark.java | 21 import org.openjdk.jmh.annotations.Benchmark; 32 * Benchmark for comparing performance of server socket implementations. 34 @State(Scope.Benchmark) 40 * consuming CPU in the benchmark method. 70 private ServerSocketBenchmark benchmark; field in class:JmhServerSocketBenchmark 74 benchmark = new ServerSocketBenchmark(config); 79 benchmark.close(); 82 @Benchmark 85 benchmark.throughput();
|
/external/tensorflow/tensorflow/tools/benchmark/ |
README.md | 1 # TensorFlow Model Benchmark Tool 5 A simple C++ binary to benchmark a compute graph and its individual operators, 21 tensorflow/tools/benchmark:benchmark_model 27 adb push bazel-bin/tensorflow/tools/benchmark/benchmark_model /data/local/tmp 33 (4) Run the benchmark. For example: 45 bazel build -c opt tensorflow/tools/benchmark:benchmark_model 51 bazel-bin/tensorflow/tools/benchmark/benchmark_model \
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
tsan_bench.cc | 25 static void Benchmark() { 36 Benchmark<uint8_t, noinstr>(); 40 Benchmark<uint8_t, __tsan_read1>(); 44 Benchmark<uint8_t, __tsan_write1>(); 48 Benchmark<uint16_t, noinstr>(); 52 Benchmark<uint16_t, __tsan_read2>(); 56 Benchmark<uint16_t, __tsan_write2>(); 60 Benchmark<uint32_t, noinstr>(); 64 Benchmark<uint32_t, __tsan_read4>(); 68 Benchmark<uint32_t, __tsan_write4>() [all...] |
/system/libhwbinder/vts/performance/ |
Benchmark.cpp | 28 #include <benchmark/benchmark.h> 70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { 84 static void BM_sendVec_passthrough(benchmark::State& state) { 88 state.SkipWithError("Failed to retrieve benchmark service."); 91 state.SkipWithError("Benchmark service is remote."); 96 static void BM_sendVec_binderize(benchmark::State& state) { 100 state.SkipWithError("Failed to retrieve benchmark service."); 103 state.SkipWithError("Unable to fetch remote benchmark service."); 127 BENCHMARK(BM_sendVec_binderize)->RangeMultiplier(2)->Range(4, 65536) [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
MacrobenchmarkWorker.java | 26 import com.google.caliper.runner.Running.Benchmark; 47 @Inject MacrobenchmarkWorker(@Benchmark Object benchmark, @BenchmarkMethod Method method, 49 super(benchmark, method); 52 getAnnotatedMethods(benchmark.getClass(), BeforeRep.class); 54 getAnnotatedMethods(benchmark.getClass(), AfterRep.class); 60 beforeRepMethod.invoke(benchmark); 69 benchmarkMethod.invoke(benchmark); 81 afterRepMethod.invoke(benchmark);
|
Worker.java | 40 protected final Object benchmark; field in class:Worker 42 protected Worker(Object benchmark, Method method) { 43 this.benchmark = benchmark; 47 /** Initializes the benchmark object. */ 50 method.invoke(benchmark); 54 /** Called once before all measurements but after benchmark setup. */ 71 /** Tears down the benchmark object. */ 74 method.invoke(benchmark);
|
/external/google-benchmark/ |
README.md | 0 # benchmark 2 [](https://travis-ci.org/google/benchmark) 3 [](https://ci.appveyor.com/project/google/benchmark/branch/master) 4 [](https://coveralls.io/r/google/benchmark) 8 Discussion group: https://groups.google.com/d/forum/benchmark-discuss 22 $ git clone https://github.com/google/benchmark.git 23 # Benchmark requires GTest as a dependency. Add the source tree as a subdirectory. 24 $ git clone https://github.com/google/googletest.git benchmark/googletes [all...] |
/external/libcxx/utils/google-benchmark/ |
README.md | 0 # benchmark 2 [](https://travis-ci.org/google/benchmark) 3 [](https://ci.appveyor.com/project/google/benchmark/branch/master) 4 [](https://coveralls.io/r/google/benchmark) 9 Discussion group: https://groups.google.com/d/forum/benchmark-discuss 23 $ git clone https://github.com/google/benchmark.git 24 # Benchmark requires GTest as a dependency. Add the source tree as a subdirectory. 25 $ git clone https://github.com/google/googletest.git benchmark/googletes [all...] |
/external/google-benchmark/src/ |
log.h | 7 #include "benchmark/benchmark.h" 9 namespace benchmark { namespace 67 } // end namespace benchmark 70 (::benchmark::internal::GetLogInstanceForLevel(x) << "-- LOG(" << x << "):" \
|
/external/google-benchmark/test/ |
skip_with_error_test.cc | 7 #include "benchmark/benchmark.h" 11 class TestReporter : public benchmark::ConsoleReporter { 33 typedef benchmark::BenchmarkReporter::Run Run; 64 void BM_error_before_running(benchmark::State& state) { 70 BENCHMARK(BM_error_before_running); 73 void BM_error_before_running_range_for(benchmark::State& state) { 79 BENCHMARK(BM_error_before_running_range_for); 82 void BM_error_during_running(benchmark::State& state) { 95 BENCHMARK(BM_error_during_running)->Arg(1)->Arg(2)->ThreadRange(1, 8) [all...] |
/external/libcxx/benchmarks/ |
stringstream.bench.cpp | 1 #include "benchmark/benchmark.h" 31 static void BM_Istream_numbers(benchmark::State &state) { 34 benchmark::DoNotOptimize(i += istream_numbers()); 37 BENCHMARK(BM_Istream_numbers)->RangeMultiplier(2)->Range(1024, 4096);
|
/external/libcxx/utils/google-benchmark/src/ |
log.h | 7 #include "benchmark/benchmark.h" 9 namespace benchmark { namespace 67 } // end namespace benchmark 70 (::benchmark::internal::GetLogInstanceForLevel(x) << "-- LOG(" << x << "):" \
|
/external/libcxx/utils/google-benchmark/test/ |
skip_with_error_test.cc | 7 #include "benchmark/benchmark.h" 11 class TestReporter : public benchmark::ConsoleReporter { 33 typedef benchmark::BenchmarkReporter::Run Run; 64 void BM_error_before_running(benchmark::State& state) { 70 BENCHMARK(BM_error_before_running); 73 void BM_error_before_running_range_for(benchmark::State& state) { 79 BENCHMARK(BM_error_before_running_range_for); 82 void BM_error_during_running(benchmark::State& state) { 95 BENCHMARK(BM_error_during_running)->Arg(1)->Arg(2)->ThreadRange(1, 8) [all...] |