benchmark 1.9.1
Loading...
Searching...
No Matches
benchmark::internal::Benchmark Class Referenceabstract
Inheritance diagram for benchmark::internal::Benchmark:
benchmark::Fixture benchmark::internal::FunctionBenchmark

Public Member Functions

Benchmark * Name (const std::string &name)
 
Benchmark * Arg (int64_t x)
 
Benchmark * Unit (TimeUnit unit)
 
Benchmark * Range (int64_t start, int64_t limit)
 
Benchmark * DenseRange (int64_t start, int64_t limit, int step=1)
 
Benchmark * Args (const std::vector< int64_t > &args)
 
Benchmark * ArgPair (int64_t x, int64_t y)
 
Benchmark * Ranges (const std::vector< std::pair< int64_t, int64_t > > &ranges)
 
Benchmark * ArgsProduct (const std::vector< std::vector< int64_t > > &arglists)
 
Benchmark * ArgName (const std::string &name)
 
Benchmark * ArgNames (const std::vector< std::string > &names)
 
Benchmark * RangePair (int64_t lo1, int64_t hi1, int64_t lo2, int64_t hi2)
 
Benchmark * Setup (void(*setup)(const benchmark::State &))
 
Benchmark * Teardown (void(*teardown)(const benchmark::State &))
 
Benchmark * Apply (void(*func)(Benchmark *benchmark))
 
Benchmark * RangeMultiplier (int multiplier)
 
Benchmark * MinTime (double t)
 
Benchmark * MinWarmUpTime (double t)
 
Benchmark * Iterations (IterationCount n)
 
Benchmark * Repetitions (int n)
 
Benchmark * ReportAggregatesOnly (bool value=true)
 
Benchmark * DisplayAggregatesOnly (bool value=true)
 
Benchmark * MeasureProcessCPUTime ()
 
Benchmark * UseRealTime ()
 
Benchmark * UseManualTime ()
 
Benchmark * Complexity (BigO complexity=benchmark::oAuto)
 
Benchmark * Complexity (BigOFunc *complexity)
 
Benchmark * ComputeStatistics (const std::string &name, StatisticsFunc *statistics, StatisticUnit unit=kTime)
 
Benchmark * Threads (int t)
 
Benchmark * ThreadRange (int min_threads, int max_threads)
 
Benchmark * DenseThreadRange (int min_threads, int max_threads, int stride=1)
 
Benchmark * ThreadPerCpu ()
 
virtual void Run (State &state)=0
 
TimeUnit GetTimeUnit () const
 
const char * GetName () const
 
int ArgsCnt () const
 
const char * GetArgName (int arg) const
 

Protected Member Functions

 Benchmark (const std::string &name)
 
void SetName (const std::string &name)
 

Friends

class BenchmarkFamilies
 
class BenchmarkInstance
 

The documentation for this class was generated from the following files: