| /external/cronet/third_party/google_benchmark/src/ |
| D | README.md | 1 # Benchmark chapter 3 …-and-test](https://github.com/google/benchmark/workflows/build-and-test/badge.svg)](https://github… 4 [](https://githu… 5 [](https://github.com/goog… 6 …st-bindings](https://github.com/google/benchmark/workflows/test-bindings/badge.svg)](https://githu… 8 [](https://travis-ci.org/goo… 9 …verage Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/goog… 12 A library to benchmark code snippets, similar to unit tests. Example: 15 #include <benchmark/benchmark.h> 17 static void BM_SomeFunction(benchmark::State& state) { [all …]
|
| /external/google-benchmark/ |
| D | README.md | 1 # Benchmark chapter 3 …-and-test](https://github.com/google/benchmark/workflows/build-and-test/badge.svg)](https://github… 4 [](https://githu… 5 [](https://github.com/goog… 6 …st-bindings](https://github.com/google/benchmark/workflows/test-bindings/badge.svg)](https://githu… 7 …verage Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/goog… 11 A library to benchmark code snippets, similar to unit tests. Example: 14 #include <benchmark/benchmark.h> 16 static void BM_SomeFunction(benchmark::State& state) { 23 // Register the function as a benchmark [all …]
|
| /external/protobuf/benchmarks/ |
| D | README.md | 16 You need to install [cmake](https://cmake.org/) before building the benchmark. 18 We are using [google/benchmark](https://github.com/google/benchmark) as the 19 benchmark tool for testing cpp. This will be automatically made during build the 20 cpp benchmark. 23 [TCMalloc](https://google.github.io/tcmalloc). 28 [google/caliper](https://github.com/google/caliper) as benchmark tool, which 36 protobuf's benchmark. e.g. under Ubuntu, you need to 39 $ sudo apt-get install python-dev 40 $ sudo apt-get install python3-dev 42 And you also need to make sure `pkg-config` is installed. [all …]
|
| D | Makefile.am | 25 mkdir -p 'tmp/java/src/main/java' 31 # building out-of-tree. 33 …oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/t… 37 …oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/t… 40 all_data = $$(find $$(cd $(srcdir) && pwd) -type f -name "dataset.*.pb" -not -path "$$(cd $(srcdir)… 94 …cd $(top_srcdir) && git submodule update --init -r third_party/benchmark && cd third_party/benchma… 95 && cmake -DCMAKE_BUILD_TYPE=Release && make 99 $(top_srcdir)/third_party/benchmark/src/libbenchmark.a: initialize_submodule 101 …XXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-… 103 bin_PROGRAMS = cpp-benchmark [all …]
|
| /external/cronet/third_party/protobuf/benchmarks/ |
| D | README.md | 16 You need to install [cmake](https://cmake.org/) before building the benchmark. 18 We are using [google/benchmark](https://github.com/google/benchmark) as the 19 benchmark tool for testing cpp. This will be automatically made during build the 20 cpp benchmark. 23 [TCMalloc](https://google.github.io/tcmalloc). 28 [google/caliper](https://github.com/google/caliper) as benchmark tool, which 36 protobuf's benchmark. e.g. under Ubuntu, you need to 39 $ sudo apt-get install python-dev 40 $ sudo apt-get install python3-dev 42 And you also need to make sure `pkg-config` is installed. [all …]
|
| D | Makefile.am | 25 mkdir -p 'tmp/java/src/main/java' 31 # building out-of-tree. 33 …oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/t… 37 …oldpwd/../src/protoc$(EXEEXT) -I. -I$(top_srcdir)/src --cpp_out=$$oldpwd/cpp --java_out=$$oldpwd/t… 40 all_data = $$(find $$(cd $(srcdir) && pwd) -type f -name "dataset.*.pb" -not -path "$$(cd $(srcdir)… 94 …cd $(top_srcdir) && git submodule update --init -r third_party/benchmark && cd third_party/benchma… 95 && cmake -DCMAKE_BUILD_TYPE=Release && make 99 $(top_srcdir)/third_party/benchmark/src/libbenchmark.a: initialize_submodule 101 …XXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) -Wall -Wwrite-strings -Woverloaded-virtual -Wno-… 103 bin_PROGRAMS = cpp-benchmark [all …]
|
| /external/libcxx/utils/google-benchmark/ |
| D | README.md | 1 # benchmark chapter 2 [](https://travis-ci.org/g… 3 …7t1tk7cpxs/branch/master?svg=true)](https://ci.appveyor.com/project/google/benchmark/branch/master) 4 …verage Status](https://coveralls.io/repos/google/benchmark/badge.svg)](https://coveralls.io/r/goog… 5 [](https://slackin-iqtfqnpzxd.now.sh/) 7 A library to support the benchmarking of functions, similar to unit-tests. 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 [all …]
|
| /external/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/ |
| D | JsonBenchmark.kt | 2 * Copyright 2021 Google Inc. All rights reserved. 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.flatbuffers.kotlin.benchmark 18 import com.google.flatbuffers.kotlin.ArrayReadBuffer 19 import com.google.flatbuffers.kotlin.JSONParser 20 import com.google.flatbuffers.kotlin.Reference 21 import com.google.flatbuffers.kotlin.toJson 22 import com.google.gson.Gson 23 import com.google.gson.JsonObject 24 import com.google.gson.JsonParser [all …]
|
| D | UTF8Benchmark.kt | 2 * Copyright 2021 Google Inc. All rights reserved. 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.flatbuffers.kotlin.benchmark 18 import com.google.flatbuffers.kotlin.ArrayReadWriteBuffer 19 import com.google.flatbuffers.kotlin.Key 20 import com.google.flatbuffers.kotlin.Utf8 21 import kotlinx.benchmark.Blackhole 22 import org.openjdk.jmh.annotations.Benchmark 34 @State(Scope.Benchmark) 51 @Benchmark [all …]
|
| /external/harfbuzz_ng/perf/ |
| D | README.md | 3 Benchmarks are implemented using [Google Benchmark](https://github.com/google/benchmark). 5 To build the benchmarks in this directory you need to set the benchmark 9 meson build -Dbenchmark=enabled --buildtype=release 13 meson build -Dbenchmark=enabled --buildtype=debugoptimized 17 Then build a specific benchmark binaries with ninja: 19 ninja -Cbuild perf/benchmark-set 23 ninja -Cbuild 29 ./build/perf/benchmark-set 33 via flags to the benchmark binary. See the 34 [Google Benchmark User Guide](https://github.com/google/benchmark/blob/main/docs/user_guide.md#user… [all …]
|
| /external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
| D | RuntimeWorker.java | 2 * Copyright (C) 2011 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.worker; 21 import com.google.caliper.model.Measurement; 22 import com.google.caliper.model.Value; 23 import com.google.caliper.runner.InvalidBenchmarkException; 24 import com.google.caliper.runner.Running.Benchmark; 25 import com.google.caliper.runner.Running.BenchmarkMethod; 26 import com.google.caliper.util.ShortDuration; 27 import com.google.caliper.util.Util; [all …]
|
| D | MicrobenchmarkAllocationWorker.java | 2 * Copyright (C) 2011 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.worker; 19 import com.google.caliper.model.Measurement; 20 import com.google.caliper.runner.Running.Benchmark; 21 import com.google.caliper.runner.Running.BenchmarkMethod; 31 * The {@link Worker} for the {@code AllocationInstrument}. This class invokes the benchmark method 48 * non-deterministic. 57 @Inject MicrobenchmarkAllocationWorker(@Benchmark Object benchmark, in MicrobenchmarkAllocationWorker() argument 59 super(benchmark, method); in MicrobenchmarkAllocationWorker() [all …]
|
| D | MacrobenchmarkWorker.java | 2 * Copyright (C) 2013 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.worker; 19 import static com.google.caliper.util.Reflection.getAnnotatedMethods; 22 import com.google.caliper.api.AfterRep; 23 import com.google.caliper.api.BeforeRep; 24 import com.google.caliper.model.Measurement; 25 import com.google.caliper.model.Value; 26 import com.google.caliper.runner.Running.Benchmark; 27 import com.google.caliper.runner.Running.BenchmarkMethod; [all …]
|
| D | MacrobenchmarkAllocationWorker.java | 2 * Copyright (C) 2011 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.worker; 19 import com.google.caliper.model.Measurement; 20 import com.google.caliper.runner.Running.Benchmark; 21 import com.google.caliper.runner.Running.BenchmarkMethod; 22 import com.google.common.collect.ImmutableList; 29 * The {@link Worker} for the {@code AllocationInstrument}. This class invokes the benchmark method 36 @Inject MacrobenchmarkAllocationWorker(@Benchmark Object benchmark, in MacrobenchmarkAllocationWorker() argument 38 super(benchmark, method); in MacrobenchmarkAllocationWorker() [all …]
|
| D | Worker.java | 2 * Copyright (C) 2011 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 16 package com.google.caliper.worker; 18 import com.google.caliper.model.Measurement; 19 import com.google.caliper.runner.Running.AfterExperimentMethods; 20 import com.google.caliper.runner.Running.BeforeExperimentMethods; 21 import com.google.common.collect.ImmutableSet; 40 protected final Object benchmark; field in Worker 42 protected Worker(Object benchmark, Method method) { in Worker() argument 43 this.benchmark = benchmark; in Worker() [all …]
|
| /external/caliper/caliper/src/test/java/com/google/caliper/runner/ |
| D | MalformedBenchmarksTest.java | 2 * Copyright (C) 2009 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.runner; 22 import com.google.caliper.Benchmark; 23 import com.google.caliper.Param; 24 import com.google.caliper.config.InvalidConfigurationException; 25 import com.google.caliper.util.InvalidCommandException; 37 * Unit test covering common user mistakes in benchmark classes. 48 "Benchmark class %s does not have a publicly visible default constructor"; 53 "Benchmark methods must not be static: timeIt"; [all …]
|
| /external/toolchain-utils/crosperf/ |
| D | experiment_file_unittest.py | 2 # -*- coding: utf-8 -*- 5 # Use of this source code is governed by a BSD-style license that can be 17 board: x86-alex 18 remote: chromeos-alex3 19 perf_args: record -a -e cycles 20 benchmark: PageCycler { 25 chromeos_image: /usr/local/google/cros_image1.bin 29 remote: chromeos-lumpy1 30 chromeos_image: /usr/local/google/cros_image2.bin 35 board: x86-alex [all …]
|
| /external/libcxx/benchmarks/ |
| D | CMakeLists.txt | 5 # Build Google Benchmark for libc++ 9 -Wno-unused-command-line-argument 10 -nostdinc++ 11 -isystem ${LIBCXX_SOURCE_DIR}/include 12 -L${LIBCXX_LIBRARY_DIR} 13 -Wl,-rpath,${LIBCXX_LIBRARY_DIR} 18 -L${LIBCXX_CXX_ABI_LIBRARY_PATH} 19 -Wl,-rpath,${LIBCXX_CXX_ABI_LIBRARY_PATH}) 22 list(APPEND BENCHMARK_LIBCXX_COMPILE_FLAGS -include "${LIBCXX_BINARY_DIR}/__config_site") 26 ExternalProject_Add(google-benchmark-libcxx [all …]
|
| /external/caliper/tutorial/ |
| D | Tutorial.java | 2 * Copyright (C) 2009 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import com.google.caliper.BeforeExperiment; 20 import com.google.caliper.Benchmark; 21 import com.google.caliper.Param; 30 * We begin the Caliper tutorial with the simplest benchmark you can write. 35 * - We write a class that extends com.google.caliper.Benchmark. 36 * - It contains a public instance method whose name begins with 'time' and 38 * - The body of the method simply executes the code we wish to measure, 44 * [real-time results appear on this line] [all …]
|
| /external/google-cloud-java/java-grafeas/src/main/java/io/grafeas/v1/ |
| D | ComplianceVersion.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 26 * Describes the CIS benchmark version that is applicable to a given OS and 32 public final class ComplianceVersion extends com.google.protobuf.GeneratedMessageV3 38 private ComplianceVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in ComplianceVersion() 55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { in getUnknownFields() 59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { in getDescriptor() 64 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 79 * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is 93 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; in getCpeUri() 103 * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is [all …]
|
| /external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
| D | AllocationInstrument.java | 2 * Copyright (C) 2011 Google Inc. 8 * http://www.apache.org/licenses/LICENSE-2.0 17 package com.google.caliper.runner; 19 import static com.google.common.base.Preconditions.checkArgument; 20 import static com.google.common.base.Preconditions.checkNotNull; 21 import static com.google.common.base.Throwables.propagateIfInstanceOf; 24 import com.google.caliper.Benchmark; 25 import com.google.caliper.api.SkipThisScenarioException; 26 import com.google.caliper.config.VmConfig; 27 import com.google.caliper.platform.Platform; [all …]
|
| /external/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
| D | WriteMessagesBenchmark.cs | 2 // Protocol Buffers - Google's data interchange format 3 // Copyright 2019 Google Inc. All rights reserved. 16 // * Neither the name of Google Inc. nor the names of its 39 using Google.Protobuf.WellKnownTypes; 41 namespace Google.Protobuf.Benchmarks 44 /// Benchmark that tests writing performance for various messages. 62 [Benchmark] 68 [Benchmark] 74 [Benchmark] 81 [Benchmark] [all …]
|
| /external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/ |
| D | WriteMessagesBenchmark.cs | 2 // Protocol Buffers - Google's data interchange format 3 // Copyright 2019 Google Inc. All rights reserved. 16 // * Neither the name of Google Inc. nor the names of its 39 using Google.Protobuf.WellKnownTypes; 41 namespace Google.Protobuf.Benchmarks 44 /// Benchmark that tests writing performance for various messages. 62 [Benchmark] 68 [Benchmark] 74 [Benchmark] 81 [Benchmark] [all …]
|
| /external/cronet/third_party/libc++/src/benchmarks/ |
| D | CMakeLists.txt | 5 # Build Google Benchmark for libc++ 11 -Wno-unused-command-line-argument 12 -nostdinc++ 13 -isystem "${LIBCXX_GENERATED_INCLUDE_DIR}" 14 -L${LIBCXX_LIBRARY_DIR} 15 -Wl,-rpath,${LIBCXX_LIBRARY_DIR} 20 -isystem "${LIBCXX_GENERATED_INCLUDE_TARGET_DIR}") 24 -L${LIBCXX_CXX_ABI_LIBRARY_PATH} 25 -Wl,-rpath,${LIBCXX_CXX_ABI_LIBRARY_PATH}) 29 ExternalProject_Add(google-benchmark-libcxx [all …]
|
| /external/flatbuffers/benchmarks/ |
| D | CMakeLists.txt | 1 # Setup for running Google Benchmarks (https://github.com/google/benchmark) on 2 # flatbuffers. This requires both that benchmark library and its depenency gtest 13 GIT_REPOSITORY https://github.com/google/googletest.git 14 GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # release-1.11.0 18 GIT_REPOSITORY https://github.com/google/benchmark.git 43 # Generate the flatbuffers benchmark code from the flatbuffers schema using 45 # flatbuffers and the schema file itself, so it should auto-generated at the 51 --cpp 52 -o ${CPP_FB_BENCH_DIR} 58 COMMENT "Run Flatbuffers Benchmark Codegen: ${CPP_BENCH_FB_GEN}" [all …]
|