Home
last modified time | relevance | path

Searched full:benchmark (Results 1 – 25 of 1831) sorted by relevance

12345678910>>...74

/external/toolchain-utils/
Dupdate_telemetry_defaults.py4 """Script to maintain the Telemetry benchmark default results file.
46 def ListCurrentDefaults(self, benchmark=all): argument
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 …]
/external/google-benchmark/test/
Dbasic_test.cc2 #include "benchmark/benchmark.h"
4 #define BASIC_BENCHMARK_TEST(x) BENCHMARK(x)->Arg(8)->Arg(512)->Arg(8192)
6 void BM_empty(benchmark::State& state) { in BM_empty()
8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
11 BENCHMARK(BM_empty);
12 BENCHMARK(BM_empty)->ThreadPerCpu();
14 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
24 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
[all …]
Doptions_test.cc1 #include "benchmark/benchmark.h"
10 void BM_basic(benchmark::State& state) { in BM_basic()
15 void BM_basic_slow(benchmark::State& state) { in BM_basic_slow()
23 BENCHMARK(BM_basic);
24 BENCHMARK(BM_basic)->Arg(42);
25 BENCHMARK(BM_basic_slow)->Arg(10)->Unit(benchmark::kNanosecond);
26 BENCHMARK(BM_basic_slow)->Arg(100)->Unit(benchmark::kMicrosecond);
27 BENCHMARK(BM_basic_slow)->Arg(1000)->Unit(benchmark::kMillisecond);
28 BENCHMARK(BM_basic)->Range(1, 8);
29 BENCHMARK(BM_basic)->RangeMultiplier(2)->Range(1, 8);
[all …]
Dstring_util_gtest.cc12 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
17 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
22 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
28 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
34 EXPECT_EQ(0xFFFFFFFFFFFFFFFFul, benchmark::stoul("18446744073709551615", &pos)); in TEST()
40 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
45 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
50 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
55 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
60 EXPECT_EQ(0xBEEFul, benchmark::stoul("BEEF", &pos, 16)); in TEST()
[all …]
Dbenchmark_test.cc1 #include "benchmark/benchmark.h"
54 static void BM_Factorial(benchmark::State& state) { in BM_Factorial()
62 BENCHMARK(BM_Factorial);
63 BENCHMARK(BM_Factorial)->UseRealTime();
65 static void BM_CalculatePiRange(benchmark::State& state) { in BM_CalculatePiRange()
74 static void BM_CalculatePi(benchmark::State& state) { in BM_CalculatePi()
77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth))); in BM_CalculatePi()
80 BENCHMARK(BM_CalculatePi)->Threads(8);
81 BENCHMARK(BM_CalculatePi)->ThreadRange(1, 32);
82 BENCHMARK(BM_CalculatePi)->ThreadPerCpu();
[all …]
/external/libcxx/utils/google-benchmark/test/
Dbasic_test.cc2 #include "benchmark/benchmark.h"
4 #define BASIC_BENCHMARK_TEST(x) BENCHMARK(x)->Arg(8)->Arg(512)->Arg(8192)
6 void BM_empty(benchmark::State& state) { in BM_empty()
8 benchmark::DoNotOptimize(state.iterations()); in BM_empty()
11 BENCHMARK(BM_empty);
12 BENCHMARK(BM_empty)->ThreadPerCpu();
14 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
17 benchmark::DoNotOptimize(x); in BM_spin_empty()
24 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
26 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
[all …]
Doptions_test.cc1 #include "benchmark/benchmark.h"
10 void BM_basic(benchmark::State& state) { in BM_basic()
15 void BM_basic_slow(benchmark::State& state) { in BM_basic_slow()
23 BENCHMARK(BM_basic);
24 BENCHMARK(BM_basic)->Arg(42);
25 BENCHMARK(BM_basic_slow)->Arg(10)->Unit(benchmark::kNanosecond);
26 BENCHMARK(BM_basic_slow)->Arg(100)->Unit(benchmark::kMicrosecond);
27 BENCHMARK(BM_basic_slow)->Arg(1000)->Unit(benchmark::kMillisecond);
28 BENCHMARK(BM_basic)->Range(1, 8);
29 BENCHMARK(BM_basic)->RangeMultiplier(2)->Range(1, 8);
[all …]
Dstring_util_gtest.cc12 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
17 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
22 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
28 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
34 EXPECT_EQ(0xFFFFFFFFFFFFFFFFul, benchmark::stoul("18446744073709551615", &pos)); in TEST()
40 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
45 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
50 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
55 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
60 EXPECT_EQ(0xBEEFul, benchmark::stoul("BEEF", &pos, 16)); in TEST()
[all …]
Dbenchmark_test.cc1 #include "benchmark/benchmark.h"
54 static void BM_Factorial(benchmark::State& state) { in BM_Factorial()
62 BENCHMARK(BM_Factorial);
63 BENCHMARK(BM_Factorial)->UseRealTime();
65 static void BM_CalculatePiRange(benchmark::State& state) { in BM_CalculatePiRange()
74 static void BM_CalculatePi(benchmark::State& state) { in BM_CalculatePi()
77 benchmark::DoNotOptimize(CalculatePi(static_cast<int>(depth))); in BM_CalculatePi()
80 BENCHMARK(BM_CalculatePi)->Threads(8);
81 BENCHMARK(BM_CalculatePi)->ThreadRange(1, 32);
82 BENCHMARK(BM_CalculatePi)->ThreadPerCpu();
[all …]
/external/libcxx/utils/google-benchmark/include/benchmark/
Dbenchmark.h20 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);
[all …]
/external/google-benchmark/include/benchmark/
Dbenchmark.h20 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);
[all …]
/external/google-benchmark/
DREADME.md1 # benchmark chapter
2 …uild Status](https://travis-ci.org/google/benchmark.svg?branch=master)](https://travis-ci.org/goog…
3 …7t1tk7cpxs/branch/master?svg=true)](https://ci.appveyor.com/project/google/benchmark/branch/master)
4 …age Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/google/
9 [Discussion group](https://groups.google.com/d/forum/benchmark-discuss)
23 $ git clone https://github.com/google/benchmark.git
24 # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.
25 $ git clone https://github.com/google/googletest.git benchmark/googletest
27 $ cmake -G <generator> [options] ../benchmark
32 Note that Google Benchmark requires Google Test to build and run the tests. This
[all …]
/external/libcxx/utils/google-benchmark/
DREADME.md1 # benchmark chapter
2 …uild Status](https://travis-ci.org/google/benchmark.svg?branch=master)](https://travis-ci.org/goog…
3 …7t1tk7cpxs/branch/master?svg=true)](https://ci.appveyor.com/project/google/benchmark/branch/master)
4 …age Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/google/
9 [Discussion group](https://groups.google.com/d/forum/benchmark-discuss)
23 $ git clone https://github.com/google/benchmark.git
24 # Benchmark requires Google Test as a dependency. Add the source tree as a subdirectory.
25 $ git clone https://github.com/google/googletest.git benchmark/googletest
27 $ cmake -G <generator> [options] ../benchmark
32 Note that Google Benchmark requires Google Test to build and run the tests. This
[all …]
/external/google-benchmark/src/
Dbenchmark_register.cc37 #include "benchmark/benchmark.h"
50 namespace benchmark { namespace
55 // The size of a benchmark family determines is the number of inputs to repeat
56 // the benchmark on. If this is "large" then warn the user during configuration.
67 // benchmark identifies a family of related benchmarks to run.
72 // Registers a benchmark family and returns the index assigned to it.
73 size_t AddBenchmark(std::unique_ptr<Benchmark> family);
75 // Clear all registered benchmark families.
78 // Extract the list of benchmark instances that match the specified
87 std::vector<std::unique_ptr<Benchmark>> families_;
[all …]
/external/libcxx/utils/google-benchmark/src/
Dbenchmark_register.cc37 #include "benchmark/benchmark.h"
50 namespace benchmark { namespace
55 // The size of a benchmark family determines is the number of inputs to repeat
56 // the benchmark on. If this is "large" then warn the user during configuration.
67 // benchmark identifies a family of related benchmarks to run.
72 // Registers a benchmark family and returns the index assigned to it.
73 size_t AddBenchmark(std::unique_ptr<Benchmark> family);
75 // Clear all registered benchmark families.
78 // Extract the list of benchmark instances that match the specified
87 std::vector<std::unique_ptr<Benchmark>> families_;
[all …]
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_metadata.cc21 #include <benchmark/benchmark.h>
32 static void BM_SliceFromStatic(benchmark::State& state) { in BM_SliceFromStatic()
35 benchmark::DoNotOptimize(grpc_slice_from_static_string("abc")); in BM_SliceFromStatic()
39 BENCHMARK(BM_SliceFromStatic);
41 static void BM_SliceFromCopied(benchmark::State& state) { in BM_SliceFromCopied()
48 BENCHMARK(BM_SliceFromCopied);
50 static void BM_SliceIntern(benchmark::State& state) { in BM_SliceIntern()
58 BENCHMARK(BM_SliceIntern);
60 static void BM_SliceReIntern(benchmark::State& state) { in BM_SliceReIntern()
69 BENCHMARK(BM_SliceReIntern);
[all …]
Dbm_closure.cc21 #include <benchmark/benchmark.h>
35 static void BM_NoOpExecCtx(benchmark::State& state) { in BM_NoOpExecCtx()
42 BENCHMARK(BM_NoOpExecCtx);
44 static void BM_WellFlushed(benchmark::State& state) { in BM_WellFlushed()
53 BENCHMARK(BM_WellFlushed);
57 static void BM_ClosureInitAgainstExecCtx(benchmark::State& state) { in BM_ClosureInitAgainstExecCtx()
61 benchmark::DoNotOptimize( in BM_ClosureInitAgainstExecCtx()
66 BENCHMARK(BM_ClosureInitAgainstExecCtx);
68 static void BM_ClosureInitAgainstCombiner(benchmark::State& state) { in BM_ClosureInitAgainstCombiner()
74 benchmark::DoNotOptimize(GRPC_CLOSURE_INIT( in BM_ClosureInitAgainstCombiner()
[all …]
Dbm_cq.cc19 /* This benchmark exists to ensure that the benchmark integration is
22 #include <benchmark/benchmark.h>
37 static void BM_CreateDestroyCpp(benchmark::State& state) { in BM_CreateDestroyCpp()
44 BENCHMARK(BM_CreateDestroyCpp);
47 static void BM_CreateDestroyCpp2(benchmark::State& state) { in BM_CreateDestroyCpp2()
56 BENCHMARK(BM_CreateDestroyCpp2);
58 static void BM_CreateDestroyCore(benchmark::State& state) { in BM_CreateDestroyCore()
61 // TODO: sreek Templatize this benchmark and pass completion type and in BM_CreateDestroyCore()
68 BENCHMARK(BM_CreateDestroyCore);
78 static void BM_Pass1Cpp(benchmark::State& state) { in BM_Pass1Cpp()
[all …]
Dbm_error.cc21 #include <benchmark/benchmark.h>
38 static void BM_ErrorCreateFromStatic(benchmark::State& state) { in BM_ErrorCreateFromStatic()
45 BENCHMARK(BM_ErrorCreateFromStatic);
47 static void BM_ErrorCreateFromCopied(benchmark::State& state) { in BM_ErrorCreateFromCopied()
54 BENCHMARK(BM_ErrorCreateFromCopied);
56 static void BM_ErrorCreateAndSetStatus(benchmark::State& state) { in BM_ErrorCreateAndSetStatus()
65 BENCHMARK(BM_ErrorCreateAndSetStatus);
67 static void BM_ErrorCreateAndSetIntAndStr(benchmark::State& state) { in BM_ErrorCreateAndSetIntAndStr()
78 BENCHMARK(BM_ErrorCreateAndSetIntAndStr);
80 static void BM_ErrorCreateAndSetIntLoop(benchmark::State& state) { in BM_ErrorCreateAndSetIntLoop()
[all …]
/external/libcxx/benchmarks/
DContainerBenchmarks.hpp6 #include "benchmark/benchmark.h"
12 void BM_ConstructIterIter(benchmark::State& st, Container, GenInputs gen) { in BM_ConstructIterIter()
16 benchmark::DoNotOptimize(&in); in BM_ConstructIterIter()
19 benchmark::DoNotOptimize(c.data()); in BM_ConstructIterIter()
24 void BM_InsertValue(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValue()
30 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValue()
32 benchmark::ClobberMemory(); in BM_InsertValue()
37 void BM_InsertValueRehash(benchmark::State& st, Container c, GenInputs gen) { in BM_InsertValueRehash()
44 benchmark::DoNotOptimize(&(*c.insert(*it).first)); in BM_InsertValueRehash()
46 benchmark::ClobberMemory(); in BM_InsertValueRehash()
[all …]
Dfilesystem.bench.cpp1 #include "benchmark/benchmark.h"
10 void BM_PathConstructString(benchmark::State &st, GenInputs gen) { in BM_PathConstructString()
16 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructString()
19 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructString()
28 void BM_PathConstructCStr(benchmark::State &st, GenInputs gen) { in BM_PathConstructCStr()
34 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructCStr()
37 benchmark::DoNotOptimize(P.native().data()); in BM_PathConstructCStr()
45 void BM_PathConstructIter(benchmark::State &st, GenInputs gen) { in BM_PathConstructIter()
54 benchmark::DoNotOptimize(PP.native().data()); in BM_PathConstructIter()
55 benchmark::DoNotOptimize(Start); in BM_PathConstructIter()
[all …]
Dstring.bench.cpp8 #include "benchmark/benchmark.h"
13 // Benchmark when there is no match.
14 static void BM_StringFindNoMatch(benchmark::State &state) { in BM_StringFindNoMatch()
18 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindNoMatch()
20 BENCHMARK(BM_StringFindNoMatch)->Range(10, MAX_STRING_LEN);
22 // Benchmark when the string matches first time.
23 static void BM_StringFindAllMatch(benchmark::State &state) { in BM_StringFindAllMatch()
27 benchmark::DoNotOptimize(s1.find(s2)); in BM_StringFindAllMatch()
29 BENCHMARK(BM_StringFindAllMatch)->Range(1, MAX_STRING_LEN);
31 // Benchmark when the string matches somewhere in the end.
[all …]
/external/google-fruit/extras/benchmark/
DREADME.md4 Fruit contains some code to benchmark various metrics (e.g. performance, compile time, executable s…
7 ### Benchmark suites
13 $ ~/projects/fruit/extras/benchmark/run_benchmarks.py \
14 --continue-benchmark=true \
15 --benchmark-definition ~/projects/fruit/extras/benchmark/suites/fruit_full.yml
18 --fruit-benchmark-sources-dir ~/projects/fruit \
22 Once the benchmark run completes, you can format the results using some pre-defined tables, see the…
24 The following benchmark suites are defined:
33 …`fruit_full.yml`. This is a quick benchmark that can used during development of performance optimi…
36 * `boost_di`: unlike the others, this benchmark suite exercises the Boost.DI library (still in boos…
[all …]
/external/autotest/site_utils/
Dperf_benchmarks.json3 "benchmark": "v8", string
19 "benchmark": "sunspider", string
34 "benchmark": "dromaeo", string
49 "benchmark": "scimark_gui", string
62 "benchmark": "cycler_intl1", string
71 "benchmark": "cycler_intl2", string
80 "benchmark": "cycler_moz", string
89 "benchmark": "cycler_moz2", string
98 "benchmark": "cycler_alexa", string
107 "benchmark": "cycler_morejs", string
[all …]
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py41 # When a subclass of the Benchmark class is created, it is added to
50 # threadpool for each benchmark.
57 """Method for recording a benchmark directly.
65 extras: (optional) Dict mapping string keys to additional benchmark info.
69 IOError: if the benchmark output file already exists.
75 logging.info("Benchmark [%s] iters: %d, wall_time: %g, cpu_time: %g,"
116 """The Benchmark class registrar. Used by abstract Benchmark class."""
126 class Benchmark(six.with_metaclass(_BenchmarkRegistrar, object)): class
130 benchmark registry.
132 Only methods whose names start with the word "benchmark" will be run during
[all …]

12345678910>>...74