| /llvm-project/third-party/benchmark/src/ |
| H A D | benchmark_register.cc | 78 size_t AddBenchmark(std::unique_ptr<Benchmark> family); 92 std::vector<std::unique_ptr<Benchmark>> families_; 101 size_t BenchmarkFamilies::AddBenchmark(std::unique_ptr<Benchmark> family) { in AddBenchmark() 138 for (std::unique_ptr<Benchmark>& family : families_) { in FindBenchmarks() 188 Benchmark* RegisterBenchmarkInternal(Benchmark* bench) { in RegisterBenchmarkInternal() 189 std::unique_ptr<Benchmark> bench_ptr(bench); in RegisterBenchmarkInternal() 207 Benchmark::Benchmark(const std::string& name) in Benchmark() function in benchmark::internal::Benchmark 230 Benchmark::~Benchmark() {} in ~Benchmark() 232 Benchmark* Benchmark::Name(const std::string& name) { in Name() 237 Benchmark* Benchmark::Arg(int64_t x) { in Arg() [all …]
|
| /llvm-project/third-party/benchmark/bindings/python/google_benchmark/ |
| H A D | benchmark.cc | 37 benchmark::internal::Benchmark* RegisterBenchmark(const std::string& name, in RegisterBenchmark() 66 using benchmark::internal::Benchmark; in NB_MODULE() 67 nb::class_<Benchmark>(m, "Benchmark") in NB_MODULE() 76 .def("unit", &Benchmark::Unit, nb::rv_policy::reference) in NB_MODULE() 77 .def("arg", &Benchmark::Arg, nb::rv_policy::reference) in NB_MODULE() 78 .def("args", &Benchmark::Args, nb::rv_policy::reference) in NB_MODULE() 79 .def("range", &Benchmark::Range, nb::rv_policy::reference, in NB_MODULE() 81 .def("dense_range", &Benchmark::DenseRange, in NB_MODULE() 84 .def("ranges", &Benchmark::Ranges, nb::rv_policy::reference) in NB_MODULE() 85 .def("args_product", &Benchmark::ArgsProduct, in NB_MODULE() [all …]
|
| /llvm-project/llvm/tools/llvm-exegesis/lib/ |
| H A D | ResultAggregator.cpp | 15 void AggregateResults(Benchmark &Result, in AggregateResults() 16 ArrayRef<Benchmark> OtherResults) const override{}; in AggregateResults() 19 const Benchmark &Result) const override{}; in AggregateMeasurement() 25 const Benchmark &Result) const override; 30 const Benchmark &Result) const { in AggregateMeasurement() 42 const Benchmark &Result) const override; 47 const Benchmark &Result) const { in AggregateMeasurement() 58 Benchmark &Result, ArrayRef<Benchmark> OtherResults) const { in AggregateResults() 59 for (const Benchmark &OtherResult : OtherResults) { in AggregateResults() 81 ResultAggregator::CreateAggregator(Benchmark::RepetitionModeE RepetitionMode) { in CreateAggregator() [all …]
|
| H A D | BenchmarkResult.h | 102 struct Benchmark { struct 128 Benchmark() = default; argument 129 Benchmark(Benchmark &&) = default; 131 Benchmark(const Benchmark &) = delete; 132 Benchmark &operator=(const Benchmark &) = delete; argument 133 Benchmark &operator=(Benchmark argument 103 KeyBenchmark global() argument 121 MeasurementsBenchmark global() argument 166 TripleAndCpuBenchmark global() argument [all...] |
| H A D | Target.cpp | 74 Benchmark::ModeE Mode, const LLVMState &State, in createSnippetGenerator() 77 case Benchmark::Unknown: in createSnippetGenerator() 79 case Benchmark::Latency: in createSnippetGenerator() 81 case Benchmark::Uops: in createSnippetGenerator() 82 case Benchmark::InverseThroughput: in createSnippetGenerator() 90 Benchmark::ModeE Mode, const LLVMState &State, in createBenchmarkRunner() 94 Benchmark::ResultAggregationModeE ResultAggMode) const { in createBenchmarkRunner() 97 case Benchmark::Unknown: in createBenchmarkRunner() 99 case Benchmark::Latency: in createBenchmarkRunner() 100 case Benchmark in createBenchmarkRunner() [all...] |
| H A D | BenchmarkResult.cpp | 232 template <> struct ScalarEnumerationTraits<exegesis::Benchmark::ModeE> { 233 static void enumeration(IO &Io, exegesis::Benchmark::ModeE &Value) { 234 Io.enumCase(Value, "", exegesis::Benchmark::Unknown); 235 Io.enumCase(Value, "latency", exegesis::Benchmark::Latency); 236 Io.enumCase(Value, "uops", exegesis::Benchmark::Uops); in enumeration() 238 exegesis::Benchmark::InverseThroughput); in enumeration() 291 template <> struct MappingContextTraits<exegesis::Benchmark, YamlContext> { in mapping() 308 static void mapping(IO &Io, exegesis::Benchmark &Obj, YamlContext &Context) { in denormalize() 334 template <> struct MappingTraits<exegesis::Benchmark::TripleAndCpu> { in mapping() 335 static void mapping(IO &Io, exegesis::Benchmark in mapping() 380 Benchmark Benchmark; readYaml() local [all...] |
| H A D | LatencyBenchmarkRunner.cpp | 24 const LLVMState &State, Benchmark::ModeE Mode, in LatencyBenchmarkRunner() 26 Benchmark::ResultAggregationModeE ResultAgg, ExecutionModeE ExecutionMode, in LatencyBenchmarkRunner() 30 assert((Mode == Benchmark::Latency || Mode == Benchmark::InverseThroughput) && in LatencyBenchmarkRunner() 122 case Benchmark::Latency: in runMeasurements() 125 case Benchmark::InverseThroughput: in runMeasurements() 133 case Benchmark::MinVariance: { in runMeasurements() 144 case Benchmark::Min: { in runMeasurements() 150 case Benchmark::Max: { in runMeasurements() 156 case Benchmark::Mean: { in runMeasurements()
|
| H A D | ResultAggregator.h | 23 CreateAggregator(Benchmark::RepetitionModeE RepetitionMode); 25 virtual void AggregateResults(Benchmark &Result, 26 ArrayRef<Benchmark> OtherResults) const; 29 const Benchmark &Result) const = 0;
|
| H A D | SnippetRepetitor.cpp | 138 SnippetRepetitor::Create(Benchmark::RepetitionModeE Mode, in Create() 141 case Benchmark::Duplicate: in Create() 142 case Benchmark::MiddleHalfDuplicate: in Create() 144 case Benchmark::Loop: in Create() 145 case Benchmark::MiddleHalfLoop: in Create() 147 case Benchmark::AggregateMin: in Create()
|
| H A D | Target.h | 268 createSnippetGenerator(Benchmark::ModeE Mode, 273 Benchmark::ModeE Mode, const LLVMState &State, 278 Benchmark::ResultAggregationModeE ResultAggMode = Benchmark::Min) const; 318 const LLVMState &State, Benchmark::ModeE Mode, 320 Benchmark::ResultAggregationModeE ResultAggMode, 326 Benchmark::ResultAggregationModeE ResultAggMode,
|
| H A D | LatencyBenchmarkRunner.h | 25 LatencyBenchmarkRunner(const LLVMState &State, Benchmark::ModeE Mode, 27 Benchmark::ResultAggregationModeE ResultAggMode, 37 Benchmark::ResultAggregationModeE ResultAggMode;
|
| H A D | Clustering.h | 32 create(const std::vector<Benchmark> &Points, ModeE Mode, 94 const std::vector<Benchmark> &getPoints() const { return Points_; } in getPoints() 123 const std::vector<Benchmark> &Points, 139 const std::vector<Benchmark> &Points_; 160 bool validate(Benchmark::ModeE Mode) const;
|
| H A D | Clustering.cpp | 92 const std::vector<Benchmark> &Points, in BenchmarkClustering() 198 const Benchmark &Point = Points_[P]; in clusterizeNaive() 256 explicit OpcodeAndConfig(const Benchmark &IB) in stabilize() 329 const std::vector<Benchmark> &Points, const ModeE Mode, in create() 374 Benchmark::ModeE Mode) const { in validate() 377 case Benchmark::Latency: in validate() 385 case Benchmark::Uops: in validate() 388 case Benchmark::InverseThroughput: in validate()
|
| H A D | BenchmarkRunner.h | 39 explicit BenchmarkRunner(const LLVMState &State, Benchmark::ModeE Mode, 60 Benchmark BenchmarkResult; 69 std::pair<Error, Benchmark> 114 const Benchmark::ModeE Mode;
|
| /llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
| H A D | tsan_bench.cpp | 24 static void Benchmark() { in Benchmark() function 35 Benchmark<uint8_t, noinstr>(); in TEST() 39 Benchmark<uint8_t, __tsan_read1>(); in TEST() 43 Benchmark<uint8_t, __tsan_write1>(); in TEST() 47 Benchmark<uint16_t, noinstr>(); in TEST() 51 Benchmark<uint16_t, __tsan_read2>(); in TEST() 55 Benchmark<uint16_t, __tsan_write2>(); in TEST() 59 Benchmark<uint32_t, noinstr>(); in TEST() 63 Benchmark<uint32_t, __tsan_read4>(); in TEST() 67 Benchmark<uint32_t, __tsan_write4>(); in TEST() [all …]
|
| /llvm-project/llvm/tools/llvm-exegesis/ |
| H A D | llvm-exegesis.cpp | 75 static cl::opt<Benchmark::ModeE> BenchmarkMode( 77 cl::values(clEnumValN(Benchmark::Latency, "latency", "Instruction Latency"), 78 clEnumValN(Benchmark::InverseThroughput, "inverse_throughput", 80 clEnumValN(Benchmark::Uops, "uops", "Uop Decomposition"), 83 clEnumValN(Benchmark::Unknown, "analysis", "Analysis"))); 85 static cl::opt<Benchmark::ResultAggregationModeE> ResultAggMode( 88 cl::values(clEnumValN(Benchmark::Min, "min", "Keep min reading"), 89 clEnumValN(Benchmark::Max, "max", "Keep max reading"), 90 clEnumValN(Benchmark::Mean, "mean", 92 clEnumValN(Benchmark [all...] |
| /llvm-project/third-party/benchmark/include/benchmark/ |
| H A D | benchmark.h | 424 class Benchmark; variable 435 BENCHMARK_EXPORT Benchmark* RegisterBenchmarkInternal(Benchmark*); 1100 class BENCHMARK_EXPORT Benchmark { 1102 virtual ~Benchmark(); 1108 Benchmark* Name(const std::string& name); 1113 Benchmark* Arg(int64_t x); 1116 Benchmark* Unit(TimeUnit unit); 1121 Benchmark* Range(int64_t start, int64_t limit); 1126 Benchmark* DenseRange(int64_t start, int64_t limit, int step = 1); 1131 Benchmark* Args(const std::vector<int64_t>& args); [all …]
|
| /llvm-project/llvm/unittests/tools/llvm-exegesis/ |
| H A D | ResultAggregatorTest.cpp | 18 std::vector<Benchmark> Results(1); in TEST() 22 Benchmark &Result = Results[0]; in TEST() 25 ResultAggregator::CreateAggregator(Benchmark::RepetitionModeE::Duplicate); in TEST() 34 std::vector<Benchmark> Results(2); in TEST() 39 Benchmark &Result = Results[0]; in TEST() 43 Benchmark::RepetitionModeE::AggregateMin); in TEST() 52 std::vector<Benchmark> Results(2); in TEST() 63 Benchmark &Result = Results[0]; in TEST() 67 Benchmark::RepetitionModeE::MiddleHalfLoop); in TEST()
|
| H A D | ClusteringTest.cpp | 31 std::vector<Benchmark> Points(6); in TEST() 77 std::vector<Benchmark> Points(6); in TEST() 92 std::vector<Benchmark> Points(6); in TEST() 120 std::vector<Benchmark> Points(3); in TEST() 134 std::vector<Benchmark> Points(3); in TEST()
|
| /llvm-project/libcxx/benchmarks/algorithms/ |
| H A D | mismatch.bench.cpp | |
| /llvm-project/llvm/unittests/tools/llvm-exegesis/X86/ |
| H A D | BenchmarkResultTest.cpp | 72 Benchmark ToDisk; in TEST() 83 ToDisk.Mode = Benchmark::Latency; in TEST() 115 ExitOnErr(Benchmark::readTriplesAndCpusFromYamls(*Buffer)); in TEST() 119 AllOf(Field(&Benchmark::TripleAndCpu::LLVMTriple, in TEST() 121 Field(&Benchmark::TripleAndCpu::CpuName, in TEST() 127 ExitOnErr(Benchmark::readYaml(State, *Buffer)); in TEST() 145 ExitOnErr(Benchmark::readYamls(State, *Buffer)); in TEST()
|
| H A D | SnippetRepetitorTest.cpp | 41 void TestCommon(Benchmark::RepetitionModeE RepetitionMode, in TestCommon() 74 TestCommon(Benchmark::Duplicate); in TEST_F() 83 TestCommon(Benchmark::Duplicate, 2); in TEST_F() 95 TestCommon(Benchmark::Loop); in TEST_F()
|
| /llvm-project/libc/benchmarks/gpu/ |
| H A D | LibcGpuBenchmark.cpp | 17 FixedVector<Benchmark *, 64> benchmarks; in add_benchmark() 19 void Benchmark::add_benchmark(Benchmark *benchmark) { 81 void print_results(Benchmark *b) { in benchmark() 130 "Benchmark | Cycles | Min | Max | " in benchmark() 139 void Benchmark::run_benchmarks() { 149 for (Benchmark *b : benchmarks) {
|
| H A D | LibcGpuBenchmark.h | 85 class Benchmark { in Benchmark() 92 Benchmark(cpp::function<uint64_t(void)> func, char const *suite_name, 104 static void add_benchmark(Benchmark *benchmark); 184 LIBC_NAMESPACE::benchmarks::Benchmark SuiteName##_##TestName##_Instance( \ 188 LIBC_NAMESPACE::benchmarks::Benchmark SuiteName##_##TestName##_Instance( \ 84 Benchmark(cpp::function<uint64_t(void)> func, char const *name) Benchmark() function
|
| /llvm-project/llvm/unittests/tools/llvm-exegesis/Mips/ |
| H A D | BenchmarkResultTest.cpp | 54 Benchmark ToDisk; in TEST_F() 64 ToDisk.Mode = Benchmark::Latency; in TEST_F() 93 ExitOnErr(Benchmark::readYaml(State, *Buffer)); in TEST_F() 109 ExitOnErr(Benchmark::readYamls(State, *Buffer)); in TEST_F()
|