HomeSort by relevance Sort by last modified time
    Searched refs:benchmark (Results 26 - 50 of 184) sorted by null

12 3 4 5 6 7 8

  /external/google-benchmark/test/
fixture_test.cc 2 #include "benchmark/benchmark.h"
7 class MyFixture : public ::benchmark::Fixture {
9 void SetUp(const ::benchmark::State&) {
27 BENCHMARK_F(MyFixture, Foo)(benchmark::State& st) {
34 BENCHMARK_DEFINE_F(MyFixture, Bar)(benchmark::State& st) {
map_test.cc 1 #include "benchmark/benchmark.h"
18 static void BM_MapLookup(benchmark::State& state) {
25 benchmark::DoNotOptimize(m.find(rand() % size));
30 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
33 class MapFixture : public ::benchmark::Fixture {
35 void SetUp(const ::benchmark::State& st) {
46 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
50 benchmark::DoNotOptimize(m.find(rand() % size));
options_test.cc 1 #include "benchmark/benchmark_api.h"
3 void BM_basic(benchmark::State& state) {
7 BENCHMARK(BM_basic);
8 BENCHMARK(BM_basic)->Arg(42);
9 BENCHMARK(BM_basic)->Range(1, 8);
10 BENCHMARK(BM_basic)->DenseRange(10, 15);
11 BENCHMARK(BM_basic)->ArgPair(42, 42);
12 BENCHMARK(BM_basic)->RangePair(64, 512, 64, 512);
13 BENCHMARK(BM_basic)->MinTime(0.7);
14 BENCHMARK(BM_basic)->UseRealTime()
    [all...]
  /external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
HttpClient.java 20 /** An HTTP client to benchmark. */
22 void prepare(Benchmark benchmark);
SynchronousHttpClient.java 30 @Override public void prepare(Benchmark benchmark) {
31 this.targetBacklog = benchmark.targetBacklog;
32 executor = new ThreadPoolExecutor(benchmark.concurrencyLevel, benchmark.concurrencyLevel,
OkHttpAsync.java 46 @Override public void prepare(final Benchmark benchmark) {
47 concurrencyLevel = benchmark.concurrencyLevel;
48 targetBacklog = benchmark.targetBacklog;
51 client.setProtocols(benchmark.protocols);
52 client.setDispatcher(new Dispatcher(new ThreadPoolExecutor(benchmark.concurrencyLevel,
53 benchmark.concurrencyLevel, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())));
55 if (benchmark.tls) {
  /external/chromium-trace/catapult/telemetry/examples/benchmarks/
tbm_benchmark.py 4 from telemetry import benchmark namespace
9 class TBMSample(benchmark.Benchmark):
  /frameworks/base/libs/hwui/tests/microbench/
ShadowBench.cpp 17 #include <benchmark/benchmark.h>
80 void BM_TessellateShadows_roundrect_opaque(benchmark::State& state) {
90 benchmark::DoNotOptimize(&ambient);
91 benchmark::DoNotOptimize(&spot);
94 BENCHMARK(BM_TessellateShadows_roundrect_opaque);
96 void BM_TessellateShadows_roundrect_translucent(benchmark::State& state) {
107 benchmark::DoNotOptimize(ambient.get());
108 benchmark::DoNotOptimize(spot.get());
111 BENCHMARK(BM_TessellateShadows_roundrect_translucent)
    [all...]
FontBench.cpp 17 #include <benchmark/benchmark.h>
27 void BM_FontRenderer_precache_cachehits(benchmark::State& state) {
50 BENCHMARK(BM_FontRenderer_precache_cachehits);
  /external/caliper/caliper/src/main/java/com/google/caliper/worker/
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);
MicrobenchmarkAllocationWorker.java 20 import com.google.caliper.runner.Running.Benchmark;
31 * The {@link Worker} for the {@code AllocationInstrument}. This class invokes the benchmark method
57 @Inject MicrobenchmarkAllocationWorker(@Benchmark Object benchmark,
59 super(benchmark, method);
68 // warm up the loop in the benchmark method.
69 measureAllocations(benchmark, benchmarkMethod, WARMUP_REPS);
71 // verify that the benchmark is deterministic in terms of the measured allocations.
76 * Verify the determinism of the benchmark method.
81 * settle on a single path for invoking the benchmark method and so cause identical allocation
    [all...]
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);
  /external/skia/tools/VisualBench/
VisualDebugModule.cpp 21 Benchmark* benchmark = fBenchmarkStream->current(); local
24 // setup new benchmark
25 benchmark->delayedSetup();
27 benchmark->preTimingHooks(canvas);
30 SkIPoint size = benchmark->getSize();
33 // pour benchmark into canvas
34 benchmark->draw(1, fDebugCanvas);
42 benchmark->postTimingHooks(canvas);
VisualLightweightBenchModule.cpp 77 void VisualLightweightBenchModule::renderFrame(SkCanvas* canvas, Benchmark* benchmark, int loops) {
78 benchmark->draw(loops, canvas);
82 void VisualLightweightBenchModule::printStats(Benchmark* benchmark, int loops) {
84 const char* shortName = benchmark->getUniqueName();
111 fResults->bench(shortName, benchmark->getSize().fX, benchmark->getSize().fY);
142 bool VisualLightweightBenchModule::timingFinished(Benchmark* benchmark, int loops
    [all...]
  /external/autotest/client/site_tests/telemetry_AFDOGenerateClient/
telemetry_AFDOGenerateClient.py 77 for benchmark in PAGE_CYCLER_BENCHMARKS:
78 self._try_page_cycler(cr, benchmark)
80 def _try_page_cycler(self, cr, benchmark):
87 @param benchmark: page_cycler page to display.
90 lambda: self._navigate_page_cycler(cr, benchmark)):
91 logging.info('Browser died while navigating %s', benchmark)
96 def _navigate_page_cycler(self, cr, benchmark):
103 @param benchmark: page_cycler page to display.
110 logging.info('Navigating to page cycler %s', benchmark)
112 benchmark_start_page = PC_START_PAGE % benchmark
    [all...]
  /bionic/benchmarks/
math_benchmark.cpp 20 #include <benchmark/benchmark.h>
25 #define BENCHMARK_COMMON_VALS(name) BENCHMARK(name)->Arg(0)->Arg(1)->Arg(2)->Arg(3)
27 static void SetLabel(benchmark::State& state) {
35 static void BM_math_sqrt(benchmark::State& state) {
42 BENCHMARK(BM_math_sqrt);
44 static void BM_math_log10(benchmark::State& state) {
51 BENCHMARK(BM_math_log10);
53 static void BM_math_logb(benchmark::State& state) {
60 BENCHMARK(BM_math_logb)
    [all...]
semaphore_benchmark.cpp 23 #include <benchmark/benchmark.h>
25 static void BM_semaphore_sem_getvalue(benchmark::State& state) {
34 BENCHMARK(BM_semaphore_sem_getvalue);
36 static void BM_semaphore_sem_wait_sem_post(benchmark::State& state) {
45 BENCHMARK(BM_semaphore_sem_wait_sem_post);
61 // with the benchmark clock running. This ensures nothing else in the system
80 class SemaphoreFixture : public benchmark::Fixture {
82 void SetUp(const benchmark::State&) {
117 BENCHMARK_F(SemaphoreFixture, semaphore_sem_post)(benchmark::State& state)
    [all...]
string_benchmark.cpp 20 #include <benchmark/benchmark.h>
30 static void BM_string_memcmp(benchmark::State& state) {
45 BENCHMARK(BM_string_memcmp)->AT_COMMON_SIZES;
47 static void BM_string_memcpy(benchmark::State& state) {
60 BENCHMARK(BM_string_memcpy)->AT_COMMON_SIZES;
62 static void BM_string_memmove(benchmark::State& state) {
74 BENCHMARK(BM_string_memmove)->AT_COMMON_SIZES;
76 static void BM_string_memset(benchmark::State& state) {
87 BENCHMARK(BM_string_memset)->AT_COMMON_SIZES
    [all...]
  /external/autotest/client/site_tests/platform_LibCBench/
platform_LibCBench.py 50 # Output for each benchmark looks like the following:
63 for benchmark in results:
64 average = sum(results[benchmark]) / len(results[benchmark])
65 minimum = min(results[benchmark])
66 maximum = max(results[benchmark])
72 (benchmark, minimum, maximum, difference, average,
75 key_string = re.sub('[^\w]', '_', benchmark)
  /cts/suite/cts/utils/
grapher.py 24 A simple script to render the data from the benchmark as a graph.
44 for benchmark in tests:
45 if benchmark.startswith('com.android.cts.opengl.primitive'):
46 results = tests[benchmark]
51 plt.title(benchmark[benchmark.index('#') + 1:])
  /external/chromium-trace/catapult/telemetry/telemetry/
benchmark_run_unittest.py 7 from telemetry import benchmark as benchmark_module
25 # More end-to-end tests of Benchmark, shared_page_state and associated
38 class FakeBenchmark(benchmark_module.Benchmark):
88 benchmark = benchmarkclass()
89 return benchmark, finder_options
92 benchmark, finder_options = self.setupBenchmark()
94 page = FakePage(benchmark.GetFakeStorySet())
97 benchmark.validator.ValidateAndMeasurePage = (
99 benchmark.AddFakePage(page)
100 self.assertEqual(benchmark.Run(finder_options), 0
    [all...]
  /external/caliper/caliper/src/test/java/com/google/caliper/runner/
BenchmarkCreatorTest.java 52 PublicDefaultConstructorWithParamBenchmark benchmark = local
54 assertEquals(1, benchmark.byteField);
55 assertEquals(2, benchmark.intField);
56 assertEquals("string", benchmark.stringField);
77 assertEquals("Benchmark class "
  /external/google-benchmark/src/
check.h 10 namespace benchmark { namespace
41 } // end namespace benchmark
46 # define CHECK(b) (b ? ::benchmark::internal::GetNullLogInstance() \
47 : ::benchmark::internal::CheckHandler( \
50 # define CHECK(b) ::benchmark::internal::GetNullLogInstance()
sleep.h 6 namespace benchmark { namespace
15 } // end namespace benchmark
  /external/valgrind/memcheck/tests/
vcpu_fbench.stdout.exp 2 and performance benchmark. 100 iterations will be made.
7 adjust iteration count so the benchmark runs about five minutes.

Completed in 275 milliseconds

12 3 4 5 6 7 8