Lines Matching full:benchmark
37 #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_;
96 size_t BenchmarkFamilies::AddBenchmark(std::unique_ptr<Benchmark> family) { in AddBenchmark()
123 Err << "Could not compile benchmark re: " << error_msg << std::endl; in FindBenchmarks()
131 for (std::unique_ptr<Benchmark>& family : families_) { in FindBenchmarks()
132 // Family was deleted or benchmark doesn't match in FindBenchmarks()
143 // The benchmark will be run at least 'family_size' different inputs. in FindBenchmarks()
157 instance.benchmark = family.get(); in FindBenchmarks()
223 Benchmark* RegisterBenchmarkInternal(Benchmark* bench) { in RegisterBenchmarkInternal()
224 std::unique_ptr<Benchmark> bench_ptr(bench); in RegisterBenchmarkInternal()
230 // FIXME: This function is a hack so that benchmark.cc can access
239 // Benchmark
242 Benchmark::Benchmark(const char* name) in Benchmark() function in benchmark::internal::Benchmark
259 Benchmark::~Benchmark() {} in ~Benchmark()
261 Benchmark* Benchmark::Arg(int64_t x) { in Arg()
267 Benchmark* Benchmark::Unit(TimeUnit unit) { in Unit()
272 Benchmark* Benchmark::Range(int64_t start, int64_t limit) { in Range()
283 Benchmark* Benchmark::Ranges( in Ranges()
317 Benchmark* Benchmark::ArgName(const std::string& name) { in ArgName()
323 Benchmark* Benchmark::ArgNames(const std::vector<std::string>& names) { in ArgNames()
329 Benchmark* Benchmark::DenseRange(int64_t start, int64_t limit, int step) { in DenseRange()
339 Benchmark* Benchmark::Args(const std::vector<int64_t>& args) { in Args()
345 Benchmark* Benchmark::Apply(void (*custom_arguments)(Benchmark* benchmark)) { in Apply() argument
350 Benchmark* Benchmark::RangeMultiplier(int multiplier) { in RangeMultiplier()
356 Benchmark* Benchmark::MinTime(double t) { in MinTime()
363 Benchmark* Benchmark::Iterations(size_t n) { in Iterations()
370 Benchmark* Benchmark::Repetitions(int n) { in Repetitions()
376 Benchmark* Benchmark::ReportAggregatesOnly(bool value) { in ReportAggregatesOnly()
381 Benchmark* Benchmark::DisplayAggregatesOnly(bool value) { in DisplayAggregatesOnly()
397 Benchmark* Benchmark::UseRealTime() { in UseRealTime()
404 Benchmark* Benchmark::UseManualTime() { in UseManualTime()
411 Benchmark* Benchmark::Complexity(BigO complexity) { in Complexity()
416 Benchmark* Benchmark::Complexity(BigOFunc* complexity) { in Complexity()
422 Benchmark* Benchmark::ComputeStatistics(std::string name, in ComputeStatistics()
428 Benchmark* Benchmark::Threads(int t) { in Threads()
434 Benchmark* Benchmark::ThreadRange(int min_threads, int max_threads) { in ThreadRange()
442 Benchmark* Benchmark::DenseThreadRange(int min_threads, int max_threads, in DenseThreadRange()
455 Benchmark* Benchmark::ThreadPerCpu() { in ThreadPerCpu()
460 void Benchmark::SetName(const char* name) { name_ = name; } in SetName()
462 int Benchmark::ArgsCnt() const { in ArgsCnt()
482 } // end namespace benchmark