benchmark 1.9.5
 
Loading...
Searching...
No Matches
benchmark::internal::LambdaBenchmark< Lambda > Class Template Reference
Inheritance diagram for benchmark::internal::LambdaBenchmark< Lambda >:
Collaboration diagram for benchmark::internal::LambdaBenchmark< Lambda >:

Public Member Functions

void Run (State &st) override
 
template<class OLambda>
 LambdaBenchmark (const std::string &name, OLambda &&lam)
 
- Public Member Functions inherited from benchmark::Benchmark
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 (callback_function &&)
 
Benchmark * Setup (const callback_function &)
 
Benchmark * Teardown (callback_function &&)
 
Benchmark * Teardown (const callback_function &)
 
Benchmark * Apply (const std::function< void(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 ()
 
Benchmark * ThreadRunner (threadrunner_factory &&factory)
 
TimeUnit GetTimeUnit () const
 
const char * GetName () const
 
int ArgsCnt () const
 
const char * GetArgName (int arg) const
 

Additional Inherited Members

- Protected Member Functions inherited from benchmark::Benchmark
 Benchmark (const std::string &name)
 
void SetName (const std::string &name)
 

Member Function Documentation

◆ Run()

template<class Lambda>
void benchmark::internal::LambdaBenchmark< Lambda >::Run ( State & st)
inlineoverridevirtual

Implements benchmark::Benchmark.


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