/external/caliper/examples/src/main/java/examples/ |
NoOpBenchmark.java | 19 import com.google.caliper.Benchmark; 22 * This is the absolute minimal benchmark. It does nothing but time the rep loop. 25 @Benchmark long increment(long reps) {
|
MessageDigestCreationBenchmark.java | 19 import com.google.caliper.Benchmark; 33 @Benchmark void time(int reps) throws Exception {
|
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) {
|
FormatterBenchmark.java | 19 import com.google.caliper.Benchmark; 26 @Benchmark void formatter_NoFormatting(int reps) { 34 @Benchmark void stringBuilder_NoFormatting(int reps) { 41 @Benchmark void formatter_OneInt(int reps) { 49 @Benchmark void stringBuilder_OneInt(int reps) { 58 @Benchmark void formatter_OneString(int reps) { 66 @Benchmark void stringBuilder_OneString(int reps) {
|
LoopingBackwardsBenchmark.java | 19 import com.google.caliper.Benchmark; 28 @Benchmark int forwards(int reps) { 38 @Benchmark int backwards(int reps) {
|
/prebuilts/go/darwin-x86/src/cmd/go/testdata/ |
standalone_benchmark_test.go | 5 func Benchmark(b *testing.B) {
|
/prebuilts/go/linux-x86/src/cmd/go/testdata/ |
standalone_benchmark_test.go | 5 func Benchmark(b *testing.B) {
|
/external/skia/bench/ |
Benchmark.cpp | 8 #include "Benchmark.h" 18 Benchmark::Benchmark() { 24 const char* Benchmark::getName() { 28 const char* Benchmark::getUniqueName() { 32 SkIPoint Benchmark::getSize() { 36 void Benchmark::delayedSetup() { 40 void Benchmark::perCanvasPreDraw(SkCanvas* canvas) { 44 void Benchmark::preDraw(SkCanvas* canvas) { 48 void Benchmark::postDraw(SkCanvas* canvas) [all...] |
GMBench.h | 10 #include "Benchmark.h" 15 * Runs a GM as a benchmark by repeatedly drawing the GM. 17 class GMBench : public Benchmark { 32 typedef Benchmark INHERITED;
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
ExperimentComponent.java | 19 import static com.google.caliper.runner.Running.Benchmark; 24 * Provides access to the benchmark instance to use for the experiment. 28 @Benchmark Object getBenchmarkInstance();
|
/external/eigen/bench/tensors/ |
benchmark.h | 21 class Benchmark { 23 Benchmark(const char* name, void (*fn)(int)) { 26 Benchmark(const char* name, void (*fn_range)(int, int)) { 29 Benchmark* Arg(int x); 30 Benchmark* Range(int lo, int hi); 47 #define BENCHMARK(f) \ 48 static ::testing::Benchmark* _benchmark_##f __attribute__((unused)) = \ 49 (new ::testing::Benchmark(#f, f))
|
/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...] |
/external/google-benchmark/src/ |
benchmark_register.cc | 15 #include "benchmark/benchmark.h" 48 namespace benchmark { namespace 53 // The size of a benchmark family determines is the number of inputs to repeat 54 // the benchmark on. If this is "large" then warn the user during configuration. 65 // benchmark identifies a family of related benchmarks to run. 70 // Registers a benchmark family and returns the index assigned to it. 71 size_t AddBenchmark(std::unique_ptr<Benchmark> family); 73 // Clear all registered benchmark families. 76 // Extract the list of benchmark instances that match the specifie [all...] |
benchmark_api_internal.h | 4 #include "benchmark/benchmark_api.h" 12 namespace benchmark { namespace 15 // Information kept per benchmark we may want to run 16 struct Benchmark::Instance { 18 Benchmark* benchmark; member in struct:benchmark::internal::Benchmark::Instance 36 std::vector<Benchmark::Instance>* benchmarks, 44 } // end namespace benchmark
|
/external/libcxx/utils/google-benchmark/src/ |
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...] |
benchmark_api_internal.h | 4 #include "benchmark/benchmark_api.h" 12 namespace benchmark { namespace 15 // Information kept per benchmark we may want to run 16 struct Benchmark::Instance { 18 Benchmark* benchmark; member in struct:benchmark::internal::Benchmark::Instance 34 std::vector<Benchmark::Instance>* benchmarks, 45 } // end namespace benchmark
|
/external/regex-re2/util/ |
benchmark.h | 9 struct Benchmark { 19 Benchmark(const char* name, void (*f)(int)) { Clear(name); fn = f; Register(); } 20 Benchmark(const char* name, void (*f)(int, int), int l, int h) { Clear(name); fnr = f; lo = l; hi = h; Register(); } 22 Benchmark* ThreadRange(int lo, int hi) { threadlo = lo; threadhi = hi; return this; } 34 #define BENCHMARK(f) \ 35 ::testing::Benchmark* _benchmark_##f = (new ::testing::Benchmark(#f, f)) 38 ::testing::Benchmark* _benchmark_##f = \ 39 (new ::testing::Benchmark(#f, f, lo, hi))
|
/hardware/interfaces/tests/libhwbinder/1.0/default/ |
Benchmark.cpp | 3 #include "Benchmark.h" 12 Return<void> Benchmark::sendVec( 20 return new Benchmark();
|
/external/toolchain-utils/crosperf/ |
benchmark_unittest.py | 4 """Unit tests for the Crosperf Benchmark class.""" 9 from benchmark import Benchmark 15 """Individual tests for the Benchmark class.""" 18 # Test creating a benchmark with all the fields filled out. 19 b1 = Benchmark('b1_test', # name 29 # Test creating a benchmark field with default fields left out. 30 b2 = Benchmark('b2_test', # name 41 b3 = Benchmark('b3_test', # name 51 # Check to see if the args to Benchmark have changed since the last tim [all...] |
mock_instance.py | 8 from benchmark import Benchmark 38 benchmark1 = Benchmark('benchmark1', 'autotest_name_1', 'autotest_args', 2, '', 41 benchmark2 = Benchmark('benchmark2', 'autotest_name_2', 'autotest_args', 2, '',
|
/system/core/liblog/tests/ |
benchmark.h | 29 class Benchmark; 33 void BenchmarkRegister(Benchmark* bm); 36 class Benchmark { 38 Benchmark(const char* name, void (*fn)(int)) : name_(strdup(name)), fn_(fn) { 41 explicit Benchmark(const char* name) : name_(strdup(name)), fn_(NULL) {} 43 virtual ~Benchmark() { 59 class BenchmarkWantsArgBase : public Benchmark { 61 BenchmarkWantsArgBase(const char* name, void (*fn)(int, T)) : Benchmark(name) { 71 virtual void RunFn(int) { printf("can't run arg benchmark %s without arg\n", Name()); } 118 static inline Benchmark* BenchmarkFactory(const char* name, void (*fn)(int)) [all...] |
/external/caliper/tutorial/ |
Tutorial.java | 20 import com.google.caliper.Benchmark; 30 * We begin the Caliper tutorial with the simplest benchmark you can write. 35 * - We write a class that extends com.google.caliper.Benchmark. 48 * Benchmark ns 53 @Benchmark void timeNanoTime(int reps) { 68 * Benchmark ns 74 @Benchmark void timeNanoTime(int reps) { 79 @Benchmark void timeCurrentTimeMillis(int reps) { 94 @Benchmark void timeArrayIteration_BAD(int reps) { 102 * Caliper reported that the benchmark above ran in 4 nanoseconds [all...] |
/external/google-benchmark/include/benchmark/ |
benchmark_api.h | 6 static void BM_StringCreation(benchmark::State& state) { 11 // Register the function as a benchmark 12 BENCHMARK(BM_StringCreation); 14 // Define another benchmark 15 static void BM_StringCopy(benchmark::State& state) { 20 BENCHMARK(BM_StringCopy); 29 benchmark::Initialize(&argc, argv); 30 benchmark::RunSpecifiedBenchmarks(); 40 static void BM_memcpy(benchmark::State& state) { 49 BENCHMARK(BM_memcpy)->Arg(8)->Arg(64)->Arg(512)->Arg(1<<10)->Arg(8<<10) 172 namespace benchmark { namespace [all...] |
/external/guava/guava-tests/benchmark/com/google/common/base/ |
StopwatchBenchmark.java | 19 import com.google.caliper.Benchmark; 25 * Simple benchmark: create, start, read. This does not currently report the 27 * benchmark is being affected by GC. 32 @Benchmark long stopwatch(int reps) { 42 @Benchmark long manual(int reps) {
|
/external/libcxx/utils/google-benchmark/include/benchmark/ |
benchmark_api.h | 6 static void BM_StringCreation(benchmark::State& state) { 11 // Register the function as a benchmark 12 BENCHMARK(BM_StringCreation); 14 // Define another benchmark 15 static void BM_StringCopy(benchmark::State& state) { 20 BENCHMARK(BM_StringCopy); 29 benchmark::Initialize(&argc, argv); 30 benchmark::RunSpecifiedBenchmarks(); 40 static void BM_memcpy(benchmark::State& state) { 49 BENCHMARK(BM_memcpy)->Arg(8)->Arg(64)->Arg(512)->Arg(1<<10)->Arg(8<<10) 166 namespace benchmark { namespace [all...] |