Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
benchmark Namespace Reference

Namespaces

 cycleclock
 
 internal
 

Classes

class  Barrier
 
struct  BenchmarkName
 
class  BenchmarkReporter
 
struct  ChooseClockType
 
class  ConsoleReporter
 
class  Counter
 
struct  CPUInfo
 
class  CSVReporter
 
class  Fixture
 
class  JSONReporter
 
struct  LeastSq
 
class  MemoryManager
 
class  MutexLock
 
class  Regex
 
class  Stat1
 
class  Stat1MinMax
 
class  State
 
struct  SystemInfo
 
class  Vector2
 
class  Vector3
 
class  Vector4
 

Typedefs

typedef double() BigOFunc(IterationCount)
 
typedef std::condition_variable Condition
 
typedef uint64_t IterationCount
 
typedef Stat1< double, int64_tStat1_d
 
typedef Stat1< float, int64_tStat1_f
 
typedef Stat1MinMax< double, int64_tStat1MinMax_d
 
typedef Stat1MinMax< float, int64_tStat1MinMax_f
 
typedef double() StatisticsFunc(const std::vector< double > &)
 
typedef std::map< std::string, CounterUserCounters
 

Enumerations

enum  BigO {
  oNone, o1, oN, oNSquared,
  oNCubed, oLogN, oNLogN, oAuto,
  oLambda, oNone, o1, oN,
  oNSquared, oNCubed, oLogN, oNLogN,
  oAuto, oLambda, oNone, o1,
  oN, oNSquared, oNCubed, oLogN,
  oNLogN, oAuto, oLambda
}
 
enum  BigO {
  oNone, o1, oN, oNSquared,
  oNCubed, oLogN, oNLogN, oAuto,
  oLambda, oNone, o1, oN,
  oNSquared, oNCubed, oLogN, oNLogN,
  oAuto, oLambda, oNone, o1,
  oN, oNSquared, oNCubed, oLogN,
  oNLogN, oAuto, oLambda
}
 
enum  BigO {
  oNone, o1, oN, oNSquared,
  oNCubed, oLogN, oNLogN, oAuto,
  oLambda, oNone, o1, oN,
  oNSquared, oNCubed, oLogN, oNLogN,
  oAuto, oLambda, oNone, o1,
  oN, oNSquared, oNCubed, oLogN,
  oNLogN, oAuto, oLambda
}
 
enum  LogColor {
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE
}
 
enum  LogColor {
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE
}
 
enum  LogColor {
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE,
  COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
  COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE
}
 
enum  StatisticUnit { kTime, kPercentage }
 
enum  TimeUnit {
  kNanosecond, kMicrosecond, kMillisecond, kSecond,
  kNanosecond, kMicrosecond, kMillisecond, kNanosecond,
  kMicrosecond, kMillisecond
}
 
enum  TimeUnit {
  kNanosecond, kMicrosecond, kMillisecond, kSecond,
  kNanosecond, kMicrosecond, kMillisecond, kNanosecond,
  kMicrosecond, kMillisecond
}
 
enum  TimeUnit {
  kNanosecond, kMicrosecond, kMillisecond, kSecond,
  kNanosecond, kMicrosecond, kMillisecond, kNanosecond,
  kMicrosecond, kMillisecond
}
 

Functions

void AddCustomContext (const std::string &key, const std::string &value)
 
void AppendHumanReadable (int n, std::string *str)
 
 BM_DECLARE_bool (benchmark_display_aggregates_only)
 
 BM_DECLARE_bool (benchmark_enable_random_interleaving)
 
 BM_DECLARE_bool (benchmark_report_aggregates_only)
 
 BM_DECLARE_double (benchmark_min_time)
 
 BM_DECLARE_int32 (benchmark_repetitions)
 
 BM_DECLARE_string (benchmark_filter)
 
 BM_DECLARE_string (benchmark_perf_counters)
 
 BM_DEFINE_bool (benchmark_counters_tabular, false)
 
 BM_DEFINE_bool (benchmark_display_aggregates_only, false)
 
 BM_DEFINE_bool (benchmark_enable_random_interleaving, false)
 
 BM_DEFINE_bool (benchmark_list_tests, false)
 
 BM_DEFINE_bool (benchmark_report_aggregates_only, false)
 
 BM_DEFINE_double (benchmark_min_time, 0.5)
 
 BM_DEFINE_int32 (benchmark_repetitions, 1)
 
 BM_DEFINE_int32 (v, 0)
 
 BM_DEFINE_kvpairs (benchmark_context, {})
 
 BM_DEFINE_string (benchmark_color, "auto")
 
 BM_DEFINE_string (benchmark_filter, "")
 
 BM_DEFINE_string (benchmark_format, "console")
 
 BM_DEFINE_string (benchmark_out, "")
 
 BM_DEFINE_string (benchmark_out_format, "json")
 
 BM_DEFINE_string (benchmark_perf_counters, "")
 
bool BoolFromEnv (const char *flag, bool default_val)
 
class CAPABILITY ("mutex") Mutex
 
double ChildrenCPUUsage ()
 
double ChronoClockNow ()
 
void ClearRegisteredBenchmarks ()
 
void ColorPrintf (std::ostream &out, LogColor color, const char *fmt, va_list args)
 
void ColorPrintf (std::ostream &out, LogColor color, const char *fmt,...)
 
std::vector< BenchmarkReporter::RunComputeBigO (const std::vector< BenchmarkReporter::Run > &reports)
 
std::vector< BenchmarkReporter::RunComputeStats (const std::vector< BenchmarkReporter::Run > &reports)
 
bool CpuScalingEnabled ()
 
std::vector< int64_tCreateDenseRange (int64_t start, int64_t limit, int step)
 
std::vector< int64_tCreateRange (int64_t lo, int64_t hi, int multi)
 
def cs (md, code)
 
def cs_lite (md, code)
 
std::string CsvEscape (const std::string &s)
 
double CyclesPerSecond (void)
 
template<class Tp >
BENCHMARK_ALWAYS_INLINE void DoNotOptimize (Tp const &value)
 
double DoubleFromEnv (const char *flag, double default_val)
 
std::string ExponentToPrefix (int64_t exponent, bool iec)
 
BigOFuncFittingCurve (BigO complexity)
 
static std::string FlagToEnvVar (const char *flag)
 
static std::string FlagToEnvVar (const char *flag)
 
std::string FormatString (const char *msg, va_list args)
 
std::string FormatString (const char *msg,...)
 
static std::string FormatTime (double time)
 
def get_code (f, size)
 
std::string GetBigOString (BigO complexity)
 
double GetTimeUnitMultiplier (TimeUnit unit)
 
const char * GetTimeUnitString (TimeUnit unit)
 
std::string HumanReadableNumber (double n)
 
std::string HumanReadableNumber (double n, double one_k)
 
static void IgnoreColorPrint (std::ostream &out, LogColor, const char *fmt,...)
 
static void IgnoreColorPrint (std::ostream &out, LogColor, const char *fmt,...)
 
static void IgnoreColorPrint (std::ostream &out, LogColor, const char *fmt,...)
 
void Initialize (int *argc, char **argv)
 
int32_t Int32FromEnv (const char *flag, int32_t default_val)
 
bool IsColorTerminal ()
 
bool IsFlag (const char *str, const char *flag)
 
bool IsTruthyFlagValue (const std::string &value)
 
std::map< std::string, std::string > KvPairsFromEnv (const char *flag, std::map< std::string, std::string > default_val)
 
std::string LocalDateTimeString ()
 
LeastSq MinimalLeastSq (const std::vector< int > &n, const std::vector< double > &time, BigOFunc *fitting_curve)
 
LeastSq MinimalLeastSq (const std::vector< int > &n, const std::vector< double > &time, const BigO complexity)
 
LeastSq MinimalLeastSq (const std::vector< int64_t > &n, const std::vector< double > &time, BigOFunc *fitting_curve)
 
LeastSq MinimalLeastSq (const std::vector< int64_t > &n, const std::vector< double > &time, const BigO complexity)
 
int NumCPUs (void)
 
template<typename VType , typename NumType >
std::ostream & operator<< (std::ostream &out, const Stat1< VType, NumType > &s)
 
template<typename VType , typename NumType >
std::ostream & operator<< (std::ostream &out, const Stat1MinMax< VType, NumType > &s)
 
Counter::Flags operator| (const Counter::Flags &LHS, const Counter::Flags &RHS)
 
bool ParseBoolFlag (const char *str, const char *flag, bool *value)
 
bool ParseDouble (const std::string &src_text, const char *str, double *value)
 
bool ParseDoubleFlag (const char *str, const char *flag, double *value)
 
const char * ParseFlagValue (const char *str, const char *flag, bool def_optional)
 
bool ParseInt32 (const std::string &src_text, const char *str, int32_t *value)
 
bool ParseInt32Flag (const char *str, const char *flag, int32_t *value)
 
bool ParseKeyValueFlag (const char *str, const char *flag, std::map< std::string, std::string > *value)
 
bool ParseStringFlag (const char *str, const char *flag, std::string *value)
 
double ProcessCPUUsage ()
 
internal::BenchmarkRegisterBenchmark (const char *name, internal::Function *fn)
 
void RegisterMemoryManager (MemoryManager *memory_manager)
 
void ReplaceAll (std::string *str, const std::string &from, const std::string &to)
 
bool ReportUnrecognizedArguments (int argc, char **argv)
 
size_t RunSpecifiedBenchmarks ()
 
size_t RunSpecifiedBenchmarks (BenchmarkReporter *display_reporter)
 
size_t RunSpecifiedBenchmarks (BenchmarkReporter *display_reporter, BenchmarkReporter *file_reporter)
 
void RunTheBenchmarksNamespaced ()
 
void Shutdown ()
 
void SleepForMicroseconds (int microseconds)
 
void SleepForMilliseconds (int milliseconds)
 
void SleepForSeconds (double seconds)
 
double StatisticsCV (const std::vector< double > &v)
 
double StatisticsMean (const std::vector< double > &v)
 
double StatisticsMedian (const std::vector< double > &v)
 
double StatisticsStdDev (const std::vector< double > &v)
 
template<class... Args>
std::string StrCat (Args &&... args)
 
std::ostream & StrCatImp (std::ostream &out) BENCHMARK_NOEXCEPT
 
template<class First , class... Rest>
std::ostream & StrCatImp (std::ostream &out, First &&f, Rest &&... rest)
 
std::string StrFormat (const char *format,...)
 
std::string StrFormatImp (const char *msg, va_list args)
 
std::ostream & StringCatImp (std::ostream &out) BENCHMARK_NOEXCEPT
 
template<class First , class... Rest>
std::ostream & StringCatImp (std::ostream &out, First &&f, Rest &&... rest)
 
const char * StringFromEnv (const char *flag, const char *default_val)
 
std::string StringPrintF (const char *format,...)
 
std::string StringPrintFImp (const char *msg, va_list args)
 
std::vector< std::string > StrSplit (const std::string &str, char delim)
 
double ThreadCPUUsage ()
 
def to_hex (s)
 
std::string ToBinaryStringFullySpecified (double value, double threshold, int precision)
 
void ToExponentAndMantissa (double val, double thresh, int precision, double one_k, std::string *mantissa, int64_t *exponent)
 

Variables

 all_tests
 
 c_t
 
 cfile
 
 code
 
 FILE
 
const int kNumMicrosPerMilli = 1000
 
const int kNumMicrosPerSecond = kNumMillisPerSecond * 1000
 
const int kNumMillisPerSecond = 1000
 
const int kNumNanosPerMicro = 1000
 
const int kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond
 
 md
 
 request
 
auto Sqr = [](const double dat) { return dat * dat; }
 
auto Sqrt
 
auto StatisticsSum
 
auto SumSquares
 
 syntax
 
 t1
 

Typedef Documentation

◆ BigOFunc

typedef double() benchmark::BigOFunc(int)

Definition at line 457 of file benchmark/include/benchmark/benchmark.h.

◆ Condition

typedef std::condition_variable benchmark::Condition

Definition at line 69 of file benchmark/src/mutex.h.

◆ IterationCount

Definition at line 451 of file benchmark/include/benchmark/benchmark.h.

◆ Stat1_d

typedef Stat1< double, int64_t > benchmark::Stat1_d

◆ Stat1_f

typedef Stat1< float, int64_t > benchmark::Stat1_f

◆ Stat1MinMax_d

◆ Stat1MinMax_f

◆ StatisticsFunc

typedef double() benchmark::StatisticsFunc(const std::vector< double > &)

Definition at line 461 of file benchmark/include/benchmark/benchmark.h.

◆ UserCounters

typedef std::map< std::string, Counter > benchmark::UserCounters

Definition at line 439 of file benchmark/include/benchmark/benchmark.h.

Enumeration Type Documentation

◆ BigO [1/3]

Enumerator
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 

Definition at line 375 of file bloaty/third_party/protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ BigO [2/3]

Enumerator
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 

Definition at line 375 of file protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ BigO [3/3]

Enumerator
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 
oNone 
o1 
oN 
oNSquared 
oNCubed 
oLogN 
oNLogN 
oAuto 
oLambda 

Definition at line 449 of file benchmark/include/benchmark/benchmark.h.

◆ LogColor [1/3]

Enumerator
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 

Definition at line 9 of file benchmark/src/colorprint.h.

◆ LogColor [2/3]

Enumerator
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 

Definition at line 9 of file protobuf/third_party/benchmark/src/colorprint.h.

◆ LogColor [3/3]

Enumerator
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 
COLOR_DEFAULT 
COLOR_RED 
COLOR_GREEN 
COLOR_YELLOW 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_WHITE 

Definition at line 9 of file bloaty/third_party/protobuf/third_party/benchmark/src/colorprint.h.

◆ StatisticUnit

Enumerator
kTime 
kPercentage 

Definition at line 453 of file benchmark/include/benchmark/benchmark.h.

◆ TimeUnit [1/3]

Enumerator
kNanosecond 
kMicrosecond 
kMillisecond 
kSecond 
kNanosecond 
kMicrosecond 
kMillisecond 
kNanosecond 
kMicrosecond 
kMillisecond 

Definition at line 369 of file bloaty/third_party/protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ TimeUnit [2/3]

Enumerator
kNanosecond 
kMicrosecond 
kMillisecond 
kSecond 
kNanosecond 
kMicrosecond 
kMillisecond 
kNanosecond 
kMicrosecond 
kMillisecond 

Definition at line 369 of file protobuf/third_party/benchmark/include/benchmark/benchmark.h.

◆ TimeUnit [3/3]

Enumerator
kNanosecond 
kMicrosecond 
kMillisecond 
kSecond 
kNanosecond 
kMicrosecond 
kMillisecond 
kNanosecond 
kMicrosecond 
kMillisecond 

Definition at line 443 of file benchmark/include/benchmark/benchmark.h.

Function Documentation

◆ AddCustomContext()

void benchmark::AddCustomContext ( const std::string &  key,
const std::string &  value 
)

Definition at line 507 of file benchmark/src/benchmark.cc.

◆ AppendHumanReadable()

void benchmark::AppendHumanReadable ( int  n,
std::string *  str 
)

Definition at line 114 of file benchmark/src/string_util.cc.

◆ BM_DECLARE_bool() [1/3]

benchmark::BM_DECLARE_bool ( benchmark_display_aggregates_only  )

◆ BM_DECLARE_bool() [2/3]

benchmark::BM_DECLARE_bool ( benchmark_enable_random_interleaving  )

◆ BM_DECLARE_bool() [3/3]

benchmark::BM_DECLARE_bool ( benchmark_report_aggregates_only  )

◆ BM_DECLARE_double()

benchmark::BM_DECLARE_double ( benchmark_min_time  )

◆ BM_DECLARE_int32()

benchmark::BM_DECLARE_int32 ( benchmark_repetitions  )

◆ BM_DECLARE_string() [1/2]

benchmark::BM_DECLARE_string ( benchmark_filter  )

◆ BM_DECLARE_string() [2/2]

benchmark::BM_DECLARE_string ( benchmark_perf_counters  )

◆ BM_DEFINE_bool() [1/5]

benchmark::BM_DEFINE_bool ( benchmark_counters_tabular  ,
false   
)

◆ BM_DEFINE_bool() [2/5]

benchmark::BM_DEFINE_bool ( benchmark_display_aggregates_only  ,
false   
)

◆ BM_DEFINE_bool() [3/5]

benchmark::BM_DEFINE_bool ( benchmark_enable_random_interleaving  ,
false   
)

◆ BM_DEFINE_bool() [4/5]

benchmark::BM_DEFINE_bool ( benchmark_list_tests  ,
false   
)

◆ BM_DEFINE_bool() [5/5]

benchmark::BM_DEFINE_bool ( benchmark_report_aggregates_only  ,
false   
)

◆ BM_DEFINE_double()

benchmark::BM_DEFINE_double ( benchmark_min_time  ,
0.  5 
)

◆ BM_DEFINE_int32() [1/2]

benchmark::BM_DEFINE_int32 ( benchmark_repetitions  ,
 
)

◆ BM_DEFINE_int32() [2/2]

benchmark::BM_DEFINE_int32 ( ,
 
)

◆ BM_DEFINE_kvpairs()

benchmark::BM_DEFINE_kvpairs ( benchmark_context  ,
{}   
)

◆ BM_DEFINE_string() [1/6]

benchmark::BM_DEFINE_string ( benchmark_color  ,
"auto"   
)

◆ BM_DEFINE_string() [2/6]

benchmark::BM_DEFINE_string ( benchmark_filter  ,
""   
)

◆ BM_DEFINE_string() [3/6]

benchmark::BM_DEFINE_string ( benchmark_format  ,
"console"   
)

◆ BM_DEFINE_string() [4/6]

benchmark::BM_DEFINE_string ( benchmark_out  ,
""   
)

◆ BM_DEFINE_string() [5/6]

benchmark::BM_DEFINE_string ( benchmark_out_format  ,
"json"   
)

◆ BM_DEFINE_string() [6/6]

benchmark::BM_DEFINE_string ( benchmark_perf_counters  ,
""   
)

◆ BoolFromEnv()

bool benchmark::BoolFromEnv ( const char *  flag,
bool  default_val 
)

Definition at line 124 of file benchmark/src/commandlineflags.cc.

◆ CAPABILITY()

class benchmark::CAPABILITY ( "mutex"  )

Definition at line 75 of file benchmark/src/mutex.h.

◆ ChildrenCPUUsage()

double benchmark::ChildrenCPUUsage ( )

◆ ChronoClockNow()

double benchmark::ChronoClockNow ( )
inline

Definition at line 38 of file third_party/benchmark/src/timers.h.

◆ ClearRegisteredBenchmarks()

void benchmark::ClearRegisteredBenchmarks ( )

Definition at line 459 of file benchmark/src/benchmark_register.cc.

◆ ColorPrintf() [1/2]

void benchmark::ColorPrintf ( std::ostream &  out,
LogColor  color,
const char *  fmt,
va_list  args 
)

Definition at line 128 of file benchmark/src/colorprint.cc.

◆ ColorPrintf() [2/2]

void benchmark::ColorPrintf ( std::ostream &  out,
LogColor  color,
const char *  fmt,
  ... 
)

Definition at line 121 of file benchmark/src/colorprint.cc.

◆ ComputeBigO()

std::vector< BenchmarkReporter::Run > benchmark::ComputeBigO ( const std::vector< BenchmarkReporter::Run > &  reports)

Definition at line 156 of file benchmark/src/complexity.cc.

◆ ComputeStats()

std::vector< BenchmarkReporter::Run > benchmark::ComputeStats ( const std::vector< BenchmarkReporter::Run > &  reports)

Definition at line 86 of file statistics.cc.

◆ CpuScalingEnabled()

bool benchmark::CpuScalingEnabled ( )

◆ CreateDenseRange()

std::vector< int64_t > benchmark::CreateDenseRange ( int64_t  start,
int64_t  limit,
int  step 
)

Definition at line 469 of file benchmark/src/benchmark_register.cc.

◆ CreateRange()

std::vector< int64_t > benchmark::CreateRange ( int64_t  lo,
int64_t  hi,
int  multi 
)

Definition at line 463 of file benchmark/src/benchmark_register.cc.

◆ cs()

def benchmark.cs (   md,
  code 
)

Definition at line 57 of file benchmark.py.

◆ cs_lite()

def benchmark.cs_lite (   md,
  code 
)

Definition at line 66 of file benchmark.py.

◆ CsvEscape()

std::string benchmark::CsvEscape ( const std::string &  s)

Definition at line 40 of file benchmark/src/csv_reporter.cc.

◆ CyclesPerSecond()

double benchmark::CyclesPerSecond ( void  )

◆ DoNotOptimize()

template<class Tp >
BENCHMARK_ALWAYS_INLINE void benchmark::DoNotOptimize ( Tp const value)
inline

Definition at line 375 of file benchmark/include/benchmark/benchmark.h.

◆ DoubleFromEnv()

double benchmark::DoubleFromEnv ( const char *  flag,
double  default_val 
)

Definition at line 142 of file benchmark/src/commandlineflags.cc.

◆ ExponentToPrefix()

std::string benchmark::ExponentToPrefix ( int64_t  exponent,
bool  iec 
)

◆ FittingCurve()

BigOFunc * benchmark::FittingCurve ( BigO  complexity)

Definition at line 28 of file benchmark/src/complexity.cc.

◆ FlagToEnvVar() [1/2]

static std::string benchmark::FlagToEnvVar ( const char *  flag)
static

◆ FlagToEnvVar() [2/2]

static std::string benchmark::FlagToEnvVar ( const char *  flag)
static

◆ FormatString() [1/2]

std::string benchmark::FormatString ( const char *  msg,
va_list  args 
)

Definition at line 85 of file benchmark/src/colorprint.cc.

◆ FormatString() [2/2]

std::string benchmark::FormatString ( const char *  msg,
  ... 
)

Definition at line 113 of file benchmark/src/colorprint.cc.

◆ FormatTime()

static std::string benchmark::FormatTime ( double  time)
static

Definition at line 101 of file benchmark/src/console_reporter.cc.

◆ get_code()

def benchmark.get_code (   f,
  size 
)

Definition at line 47 of file benchmark.py.

◆ GetBigOString()

std::string benchmark::GetBigOString ( BigO  complexity)

Definition at line 53 of file benchmark/src/complexity.cc.

◆ GetTimeUnitMultiplier()

double benchmark::GetTimeUnitMultiplier ( TimeUnit  unit)
inline

Definition at line 1664 of file benchmark/include/benchmark/benchmark.h.

◆ GetTimeUnitString()

const char * benchmark::GetTimeUnitString ( TimeUnit  unit)
inline

Definition at line 1650 of file benchmark/include/benchmark/benchmark.h.

◆ HumanReadableNumber() [1/2]

std::string benchmark::HumanReadableNumber ( double  n)

◆ HumanReadableNumber() [2/2]

std::string benchmark::HumanReadableNumber ( double  n,
double  one_k 
)

Definition at line 121 of file benchmark/src/string_util.cc.

◆ IgnoreColorPrint() [1/3]

static void benchmark::IgnoreColorPrint ( std::ostream &  out,
LogColor  ,
const char *  fmt,
  ... 
)
static

Definition at line 92 of file benchmark/src/console_reporter.cc.

◆ IgnoreColorPrint() [2/3]

static void benchmark::IgnoreColorPrint ( std::ostream &  out,
LogColor  ,
const char *  fmt,
  ... 
)
static

◆ IgnoreColorPrint() [3/3]

static void benchmark::IgnoreColorPrint ( std::ostream &  out,
LogColor  ,
const char *  fmt,
  ... 
)
static

◆ Initialize()

void benchmark::Initialize ( int argc,
char **  argv 
)

Definition at line 602 of file benchmark/src/benchmark.cc.

◆ Int32FromEnv()

int32_t benchmark::Int32FromEnv ( const char *  flag,
int32_t  default_val 
)

Definition at line 130 of file benchmark/src/commandlineflags.cc.

◆ IsColorTerminal()

bool benchmark::IsColorTerminal ( )

Definition at line 158 of file benchmark/src/colorprint.cc.

◆ IsFlag()

bool benchmark::IsFlag ( const char *  str,
const char *  flag 
)

Definition at line 267 of file benchmark/src/commandlineflags.cc.

◆ IsTruthyFlagValue()

bool benchmark::IsTruthyFlagValue ( const std::string &  value)

Definition at line 271 of file benchmark/src/commandlineflags.cc.

◆ KvPairsFromEnv()

std::map< std::string, std::string > benchmark::KvPairsFromEnv ( const char *  flag,
std::map< std::string, std::string >  default_val 
)

Definition at line 160 of file benchmark/src/commandlineflags.cc.

◆ LocalDateTimeString()

std::string benchmark::LocalDateTimeString ( )

Definition at line 182 of file benchmark/src/timers.cc.

◆ MinimalLeastSq() [1/4]

LeastSq benchmark::MinimalLeastSq ( const std::vector< int > &  n,
const std::vector< double > &  time,
BigOFunc fitting_curve 
)

◆ MinimalLeastSq() [2/4]

LeastSq benchmark::MinimalLeastSq ( const std::vector< int > &  n,
const std::vector< double > &  time,
const BigO  complexity 
)

◆ MinimalLeastSq() [3/4]

LeastSq benchmark::MinimalLeastSq ( const std::vector< int64_t > &  n,
const std::vector< double > &  time,
BigOFunc fitting_curve 
)

Definition at line 82 of file benchmark/src/complexity.cc.

◆ MinimalLeastSq() [4/4]

LeastSq benchmark::MinimalLeastSq ( const std::vector< int64_t > &  n,
const std::vector< double > &  time,
const BigO  complexity 
)

Definition at line 124 of file benchmark/src/complexity.cc.

◆ NumCPUs()

int benchmark::NumCPUs ( void  )

◆ operator<<() [1/2]

template<typename VType , typename NumType >
std::ostream & benchmark::operator<< ( std::ostream &  out,
const Stat1< VType, NumType > &  s 
)

◆ operator<<() [2/2]

template<typename VType , typename NumType >
std::ostream & benchmark::operator<< ( std::ostream &  out,
const Stat1MinMax< VType, NumType > &  s 
)

◆ operator|()

Counter::Flags benchmark::operator| ( const Counter::Flags LHS,
const Counter::Flags RHS 
)
inline

Definition at line 432 of file benchmark/include/benchmark/benchmark.h.

◆ ParseBoolFlag()

bool benchmark::ParseBoolFlag ( const char *  str,
const char *  flag,
bool value 
)

Definition at line 204 of file benchmark/src/commandlineflags.cc.

◆ ParseDouble()

bool benchmark::ParseDouble ( const std::string &  src_text,
const char *  str,
double *  value 
)

◆ ParseDoubleFlag()

bool benchmark::ParseDoubleFlag ( const char *  str,
const char *  flag,
double *  value 
)

Definition at line 228 of file benchmark/src/commandlineflags.cc.

◆ ParseFlagValue()

const char * benchmark::ParseFlagValue ( const char *  str,
const char *  flag,
bool  def_optional 
)

Definition at line 179 of file benchmark/src/commandlineflags.cc.

◆ ParseInt32()

bool benchmark::ParseInt32 ( const std::string &  src_text,
const char *  str,
int32_t value 
)

◆ ParseInt32Flag()

bool benchmark::ParseInt32Flag ( const char *  str,
const char *  flag,
int32_t value 
)

Definition at line 216 of file benchmark/src/commandlineflags.cc.

◆ ParseKeyValueFlag()

bool benchmark::ParseKeyValueFlag ( const char *  str,
const char *  flag,
std::map< std::string, std::string > *  value 
)

Definition at line 251 of file benchmark/src/commandlineflags.cc.

◆ ParseStringFlag()

bool benchmark::ParseStringFlag ( const char *  str,
const char *  flag,
std::string *  value 
)

Definition at line 240 of file benchmark/src/commandlineflags.cc.

◆ ProcessCPUUsage()

double benchmark::ProcessCPUUsage ( )

Definition at line 110 of file benchmark/src/timers.cc.

◆ RegisterBenchmark()

internal::Benchmark * benchmark::RegisterBenchmark ( const char *  name,
internal::Function fn 
)
inline

Definition at line 1093 of file benchmark/include/benchmark/benchmark.h.

◆ RegisterMemoryManager()

void benchmark::RegisterMemoryManager ( MemoryManager memory_manager)

Definition at line 503 of file benchmark/src/benchmark.cc.

◆ ReplaceAll()

void benchmark::ReplaceAll ( std::string *  str,
const std::string &  from,
const std::string &  to 
)

◆ ReportUnrecognizedArguments()

bool benchmark::ReportUnrecognizedArguments ( int  argc,
char **  argv 
)

Definition at line 611 of file benchmark/src/benchmark.cc.

◆ RunSpecifiedBenchmarks() [1/3]

size_t benchmark::RunSpecifiedBenchmarks ( )

Definition at line 437 of file benchmark/src/benchmark.cc.

◆ RunSpecifiedBenchmarks() [2/3]

size_t benchmark::RunSpecifiedBenchmarks ( BenchmarkReporter display_reporter)

Definition at line 441 of file benchmark/src/benchmark.cc.

◆ RunSpecifiedBenchmarks() [3/3]

size_t benchmark::RunSpecifiedBenchmarks ( BenchmarkReporter display_reporter,
BenchmarkReporter file_reporter 
)

Definition at line 445 of file benchmark/src/benchmark.cc.

◆ RunTheBenchmarksNamespaced()

void benchmark::RunTheBenchmarksNamespaced ( )

Definition at line 56 of file bm_alarm.cc.

◆ Shutdown()

void benchmark::Shutdown ( )

Definition at line 607 of file benchmark/src/benchmark.cc.

◆ SleepForMicroseconds()

void benchmark::SleepForMicroseconds ( int  microseconds)

Definition at line 39 of file third_party/benchmark/src/sleep.cc.

◆ SleepForMilliseconds()

void benchmark::SleepForMilliseconds ( int  milliseconds)

Definition at line 59 of file third_party/benchmark/src/sleep.cc.

◆ SleepForSeconds()

void benchmark::SleepForSeconds ( double  seconds)

Definition at line 63 of file third_party/benchmark/src/sleep.cc.

◆ StatisticsCV()

double benchmark::StatisticsCV ( const std::vector< double > &  v)

Definition at line 77 of file statistics.cc.

◆ StatisticsMean()

double benchmark::StatisticsMean ( const std::vector< double > &  v)

Definition at line 32 of file statistics.cc.

◆ StatisticsMedian()

double benchmark::StatisticsMedian ( const std::vector< double > &  v)

Definition at line 37 of file statistics.cc.

◆ StatisticsStdDev()

double benchmark::StatisticsStdDev ( const std::vector< double > &  v)

Definition at line 66 of file statistics.cc.

◆ StrCat()

template<class... Args>
std::string benchmark::StrCat ( Args &&...  args)
inline

Definition at line 34 of file third_party/benchmark/src/string_util.h.

◆ StrCatImp() [1/2]

std::ostream& benchmark::StrCatImp ( std::ostream &  out)
inline

Definition at line 23 of file third_party/benchmark/src/string_util.h.

◆ StrCatImp() [2/2]

template<class First , class... Rest>
std::ostream& benchmark::StrCatImp ( std::ostream &  out,
First &&  f,
Rest &&...  rest 
)
inline

Definition at line 28 of file third_party/benchmark/src/string_util.h.

◆ StrFormat()

std::string benchmark::StrFormat ( const char *  format,
  ... 
)

Definition at line 158 of file benchmark/src/string_util.cc.

◆ StrFormatImp()

std::string benchmark::StrFormatImp ( const char *  msg,
va_list  args 
)

Definition at line 128 of file benchmark/src/string_util.cc.

◆ StringCatImp() [1/2]

std::ostream & benchmark::StringCatImp ( std::ostream &  out)
inline

◆ StringCatImp() [2/2]

template<class First , class... Rest>
std::ostream & benchmark::StringCatImp ( std::ostream &  out,
First &&  f,
Rest &&...  rest 
)
inline

◆ StringFromEnv()

const char * benchmark::StringFromEnv ( const char *  flag,
const char *  default_val 
)

Definition at line 154 of file benchmark/src/commandlineflags.cc.

◆ StringPrintF()

std::string benchmark::StringPrintF ( const char *  format,
  ... 
)

◆ StringPrintFImp()

std::string benchmark::StringPrintFImp ( const char *  msg,
va_list  args 
)

◆ StrSplit()

std::vector< std::string > benchmark::StrSplit ( const std::string &  str,
char  delim 
)

Definition at line 166 of file benchmark/src/string_util.cc.

◆ ThreadCPUUsage()

double benchmark::ThreadCPUUsage ( )

Definition at line 141 of file benchmark/src/timers.cc.

◆ to_hex()

def benchmark.to_hex (   s)

Definition at line 44 of file benchmark.py.

◆ ToBinaryStringFullySpecified()

std::string benchmark::ToBinaryStringFullySpecified ( double  value,
double  threshold,
int  precision 
)

◆ ToExponentAndMantissa()

void benchmark::ToExponentAndMantissa ( double  val,
double  thresh,
int  precision,
double  one_k,
std::string *  mantissa,
int64_t exponent 
)

Variable Documentation

◆ all_tests

benchmark.all_tests

Definition at line 24 of file benchmark.py.

◆ c_t

benchmark.c_t

Definition at line 101 of file benchmark.py.

◆ cfile

benchmark.cfile

Definition at line 73 of file benchmark.py.

◆ code

benchmark.code

Definition at line 95 of file benchmark.py.

◆ FILE

benchmark.FILE

Definition at line 21 of file benchmark.py.

◆ kNumMicrosPerMilli

const int benchmark::kNumMicrosPerMilli = 1000

Definition at line 6 of file third_party/benchmark/src/sleep.h.

◆ kNumMicrosPerSecond

const int benchmark::kNumMicrosPerSecond = kNumMillisPerSecond * 1000

Definition at line 7 of file third_party/benchmark/src/sleep.h.

◆ kNumMillisPerSecond

const int benchmark::kNumMillisPerSecond = 1000

Definition at line 5 of file third_party/benchmark/src/sleep.h.

◆ kNumNanosPerMicro

const int benchmark::kNumNanosPerMicro = 1000

Definition at line 8 of file third_party/benchmark/src/sleep.h.

◆ kNumNanosPerSecond

const int benchmark::kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond

Definition at line 9 of file third_party/benchmark/src/sleep.h.

◆ md

benchmark.md

Definition at line 86 of file benchmark.py.

◆ request

benchmark.request

Definition at line 77 of file benchmark.py.

◆ Sqr

auto benchmark::Sqr = [](const double dat) { return dat * dat; }

Definition at line 59 of file statistics.cc.

◆ Sqrt

auto benchmark::Sqrt
Initial value:
= [](const double dat) {
if (dat < 0.0) return 0.0;
return std::sqrt(dat);
}

Definition at line 60 of file statistics.cc.

◆ StatisticsSum

auto benchmark::StatisticsSum
Initial value:
= [](const std::vector<double>& v) {
return std::accumulate(v.begin(), v.end(), 0.0);
}

Definition at line 28 of file statistics.cc.

◆ SumSquares

auto benchmark::SumSquares
Initial value:
= [](const std::vector<double>& v) {
return std::inner_product(v.begin(), v.end(), v.begin(), 0.0);
}

Definition at line 55 of file statistics.cc.

◆ syntax

benchmark.syntax

Definition at line 90 of file benchmark.py.

◆ t1

benchmark.t1

Definition at line 107 of file benchmark.py.

setup.v
v
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
accumulate
static void accumulate(upb_pb_encoder *e)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:7694


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:57