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

12 3 4 5 6 7 8 91011>>

  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/benchmarks/
string.bench.cpp 5 #include "benchmark/benchmark_api.h"
10 // Benchmark when there is no match.
11 static void BM_StringFindNoMatch(benchmark::State &state) {
15 benchmark::DoNotOptimize(s1.find(s2));
17 BENCHMARK(BM_StringFindNoMatch)->Range(10, MAX_STRING_LEN);
19 // Benchmark when the string matches first time.
20 static void BM_StringFindAllMatch(benchmark::State &state) {
24 benchmark::DoNotOptimize(s1.find(s2));
26 BENCHMARK(BM_StringFindAllMatch)->Range(1, MAX_STRING_LEN);
28 // Benchmark when the string matches somewhere in the end
    [all...]
ContainerBenchmarks.hpp 6 #include "benchmark/benchmark_api.h"
12 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) {
16 benchmark::DoNotOptimize(&in);
19 benchmark::DoNotOptimize(c.data());
24 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) {
30 benchmark::DoNotOptimize(&(*c.insert(*it).first));
32 benchmark::ClobberMemory();
37 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) {
44 benchmark::DoNotOptimize(&(*c.insert(*it).first));
46 benchmark::ClobberMemory()
    [all...]
filesystem.bench.cpp 3 #include "benchmark/benchmark_api.h"
13 void BM_PathConstructString(benchmark::State &st, GenInputs gen) {
19 benchmark::DoNotOptimize(PP.native().data());
22 benchmark::DoNotOptimize(P.native().data());
30 void BM_PathConstructCStr(benchmark::State &st, GenInputs gen) {
36 benchmark::DoNotOptimize(PP.native().data());
39 benchmark::DoNotOptimize(P.native().data());
47 void BM_PathConstructIter(benchmark::State &st, GenInputs gen) {
56 benchmark::DoNotOptimize(PP.native().data());
57 benchmark::DoNotOptimize(Start)
    [all...]
  /frameworks/base/cmds/statsd/benchmark/
hello_world_benchmark.cpp 16 #include "benchmark/benchmark.h"
18 static void BM_StringCreation(benchmark::State& state) {
21 // Register the function as a benchmark
22 BENCHMARK(BM_StringCreation);
24 // Define another benchmark
25 static void BM_StringCopy(benchmark::State& state) {
29 BENCHMARK(BM_StringCopy);
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/src/
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,
47 } // end namespace benchmark
  /libcore/luni/src/benchmark/native/
libcore_io_Memory_bench.cpp 17 // The functions we want to benchmark are static, so include the source code.
20 #include <benchmark/benchmark.h>
23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) {
61 static void BM_swapShorts_aligned(benchmark::State& state) {
64 BENCHMARK(BM_swapShorts_aligned)->AT_COMMON_VALUES;
66 static void BM_swapInts_aligned(benchmark::State& state) {
69 BENCHMARK(BM_swapInts_aligned)->AT_COMMON_VALUES;
71 static void BM_swapLongs_aligned(benchmark::State& state) {
74 BENCHMARK(BM_swapLongs_aligned)->AT_COMMON_VALUES
    [all...]
  /system/core/logcat/tests/
exec_benchmark.cpp 20 #include <benchmark/benchmark.h>
25 static void logcat_popen_libc(benchmark::State& state, const char* cmd) {
34 static void BM_logcat_stat_popen_libc(benchmark::State& state) {
37 BENCHMARK(BM_logcat_stat_popen_libc);
39 static void logcat_popen_liblogcat(benchmark::State& state, const char* cmd) {
49 static void BM_logcat_stat_popen_liblogcat(benchmark::State& state) {
52 BENCHMARK(BM_logcat_stat_popen_liblogcat);
54 static void logcat_system_libc(benchmark::State& state, const char* cmd) {
60 static void BM_logcat_stat_system_libc(benchmark::State& state)
    [all...]
  /external/google-benchmark/test/
donotoptimize_test.cc 1 #include "benchmark/benchmark.h"
32 benchmark::DoNotOptimize(buffer8);
35 benchmark::DoNotOptimize(buffer20);
38 benchmark::DoNotOptimize(buffer1024);
39 benchmark::DoNotOptimize(&buffer1024[0]);
42 benchmark::DoNotOptimize(x);
43 benchmark::DoNotOptimize(&x);
44 benchmark::DoNotOptimize(x += 42);
46 benchmark::DoNotOptimize(double_up(x))
    [all...]
filter_test.cc 1 #include "benchmark/benchmark.h"
15 class TestReporter : public benchmark::ConsoleReporter {
38 static void NoPrefix(benchmark::State& state) {
42 BENCHMARK(NoPrefix);
44 static void BM_Foo(benchmark::State& state) {
48 BENCHMARK(BM_Foo);
50 static void BM_Bar(benchmark::State& state) {
54 BENCHMARK(BM_Bar);
56 static void BM_FooBar(benchmark::State& state)
    [all...]
map_test.cc 1 #include "benchmark/benchmark.h"
19 static void BM_MapLookup(benchmark::State& state) {
27 benchmark::DoNotOptimize(m.find(rand() % size));
32 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
35 class MapFixture : public ::benchmark::Fixture {
37 void SetUp(const ::benchmark::State& st) {
41 void TearDown(const ::benchmark::State&) { m.clear(); }
46 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
50 benchmark::DoNotOptimize(m.find(rand() % size))
    [all...]
  /external/libcxx/utils/google-benchmark/test/
donotoptimize_test.cc 1 #include "benchmark/benchmark.h"
32 benchmark::DoNotOptimize(buffer8);
35 benchmark::DoNotOptimize(buffer20);
38 benchmark::DoNotOptimize(buffer1024);
39 benchmark::DoNotOptimize(&buffer1024[0]);
42 benchmark::DoNotOptimize(x);
43 benchmark::DoNotOptimize(&x);
44 benchmark::DoNotOptimize(x += 42);
46 benchmark::DoNotOptimize(double_up(x))
    [all...]
filter_test.cc 1 #include "benchmark/benchmark.h"
15 class TestReporter : public benchmark::ConsoleReporter {
38 static void NoPrefix(benchmark::State& state) {
42 BENCHMARK(NoPrefix);
44 static void BM_Foo(benchmark::State& state) {
48 BENCHMARK(BM_Foo);
50 static void BM_Bar(benchmark::State& state) {
54 BENCHMARK(BM_Bar);
56 static void BM_FooBar(benchmark::State& state)
    [all...]
map_test.cc 1 #include "benchmark/benchmark.h"
19 static void BM_MapLookup(benchmark::State& state) {
27 benchmark::DoNotOptimize(m.find(rand() % size));
32 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
35 class MapFixture : public ::benchmark::Fixture {
37 void SetUp(const ::benchmark::State& st) {
41 void TearDown(const ::benchmark::State&) { m.clear(); }
46 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
50 benchmark::DoNotOptimize(m.find(rand() % size))
    [all...]
  /external/python/cpython3/Tools/importbench/
README 3 It should not be used as an overall benchmark of import performance, but rather
5 benchmark of import, use the normal_startup benchmark from
  /hardware/interfaces/tests/libhwbinder/1.0/default/
Benchmark.cpp 3 #include "Benchmark.h"
12 Return<void> Benchmark::sendVec(
20 return new Benchmark();
  /prebuilts/go/darwin-x86/src/cmd/internal/test2json/testdata/
benchshort.test 1 # This file ends in an early EOF to trigger the Benchmark prefix test,
2 # which only happens when a benchmark prefix is seen ahead of the \n.
3 # Normally that's due to the benchmark running and the \n coming later,
  /prebuilts/go/linux-x86/src/cmd/internal/test2json/testdata/
benchshort.test 1 # This file ends in an early EOF to trigger the Benchmark prefix test,
2 # which only happens when a benchmark prefix is seen ahead of the \n.
3 # Normally that's due to the benchmark running and the \n coming later,
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/test/
filter_test.cc 1 #include "benchmark/benchmark.h"
15 class TestReporter : public benchmark::ConsoleReporter {
38 static void NoPrefix(benchmark::State& state) {
42 BENCHMARK(NoPrefix);
44 static void BM_Foo(benchmark::State& state) {
48 BENCHMARK(BM_Foo);
50 static void BM_Bar(benchmark::State& state) {
54 BENCHMARK(BM_Bar);
56 static void BM_FooBar(benchmark::State& state)
    [all...]
cxx03_test.cc 5 #include "benchmark/benchmark.h"
11 void BM_empty(benchmark::State& state) {
17 BENCHMARK(BM_empty);
21 void BM_old_arg_range_interface(benchmark::State& state) {
27 BENCHMARK(BM_old_arg_range_interface)->ArgPair(1, 2)->RangePair(5, 5, 6, 6);
30 void BM_template2(benchmark::State& state) {
36 void BM_template1(benchmark::State& state) {
42 void BM_counters(benchmark::State& state) {
46 BENCHMARK(BM_counters)
    [all...]
map_test.cc 1 #include "benchmark/benchmark.h"
19 static void BM_MapLookup(benchmark::State& state) {
26 benchmark::DoNotOptimize(m.find(rand() % size));
31 BENCHMARK(BM_MapLookup)->Range(1 << 3, 1 << 12);
34 class MapFixture : public ::benchmark::Fixture {
36 void SetUp(const ::benchmark::State& st) {
40 void TearDown(const ::benchmark::State&) { m.clear(); }
45 BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
49 benchmark::DoNotOptimize(m.find(rand() % size))
    [all...]
  /external/libcxx/benchmarks/
ContainerBenchmarks.hpp 6 #include "benchmark/benchmark.h"
12 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) {
16 benchmark::DoNotOptimize(&in);
19 benchmark::DoNotOptimize(c.data());
24 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) {
30 benchmark::DoNotOptimize(&(*c.insert(*it).first));
32 benchmark::ClobberMemory();
37 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) {
44 benchmark::DoNotOptimize(&(*c.insert(*it).first))
    [all...]
filesystem.bench.cpp 3 #include "benchmark/benchmark.h"
13 void BM_PathConstructString(benchmark::State &st, GenInputs gen) {
19 benchmark::DoNotOptimize(PP.native().data());
22 benchmark::DoNotOptimize(P.native().data());
30 void BM_PathConstructCStr(benchmark::State &st, GenInputs gen) {
36 benchmark::DoNotOptimize(PP.native().data());
39 benchmark::DoNotOptimize(P.native().data());
47 void BM_PathConstructIter(benchmark::State &st, GenInputs gen) {
56 benchmark::DoNotOptimize(PP.native().data())
    [all...]
  /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(
30 # Test creating a benchmark field with default fields left out.
31 b2 = Benchmark(
43 b3 = Benchmark(
54 # Check to see if the args to Benchmark have changed since the last tim
    [all...]
  /external/autotest/server/site_tests/telemetry_Benchmarks/
telemetry_Benchmarks.py 10 """Run a telemetry benchmark."""
14 def run_once(self, host=None, benchmark=None, args={}):
15 """Run a telemetry benchmark.
17 @param host: hostname(ip address) to run the telemetry benchmark on.
18 @param benchmark: telemetry benchmark test to run.
26 telemetry.run_telemetry_benchmark(benchmark, perf_value_writer=self)
  /external/toolchain-utils/
update_telemetry_defaults.py 4 """Script to maintain the Telemetry benchmark default results file.
46 def ListCurrentDefaults(self, benchmark=all):
48 # can specify the name of a particular benchmark to see only that
49 # benchmark's default values.
51 print('The benchmark default results are currently empty.')
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
    [all...]

Completed in 1275 milliseconds

12 3 4 5 6 7 8 91011>>