Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
ankerl::nanobench::Config Struct Reference

#include <nanobench.h>

Public Member Functions

 Config ()
 
 ~Config ()
 
Configoperator= (Config const &other)
 
Configoperator= (Config &&other) noexcept(ANKERL_NANOBENCH(NOEXCEPT_STRING_MOVE))
 
 Config (Config const &other)
 
 Config (Config &&other) noexcept
 

Public Attributes

std::string mBenchmarkTitle = "benchmark"
 
std::string mBenchmarkName = "noname"
 
std::string mUnit = "op"
 
double mBatch = 1.0
 
double mComplexityN = -1.0
 
size_t mNumEpochs = 11
 
size_t mClockResolutionMultiple = static_cast<size_t>(1000)
 
std::chrono::nanoseconds mMaxEpochTime = std::chrono::milliseconds(100)
 
std::chrono::nanoseconds mMinEpochTime = std::chrono::milliseconds(1)
 
uint64_t mMinEpochIterations {1}
 
uint64_t mEpochIterations {0}
 
uint64_t mWarmup = 0
 
std::ostream * mOut = nullptr
 
std::chrono::duration< double > mTimeUnit = std::chrono::nanoseconds{1}
 
std::string mTimeUnitName = "ns"
 
bool mShowPerformanceCounters = true
 
bool mIsRelative = false
 
std::unordered_map< std::string, std::string > mContext {}
 

Detailed Description

Definition at line 386 of file nanobench.h.

Constructor & Destructor Documentation

◆ Config() [1/3]

ankerl::nanobench::Config::Config ( )

◆ ~Config()

ankerl::nanobench::Config::~Config ( )

◆ Config() [2/3]

ankerl::nanobench::Config::Config ( Config const &  other)

◆ Config() [3/3]

ankerl::nanobench::Config::Config ( Config &&  other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

Config & ankerl::nanobench::Config::operator= ( Config &&  other)
noexcept

◆ operator=() [2/2]

Config & ankerl::nanobench::Config::operator= ( Config const &  other)

Member Data Documentation

◆ mBatch

double ankerl::nanobench::Config::mBatch = 1.0

Definition at line 391 of file nanobench.h.

◆ mBenchmarkName

std::string ankerl::nanobench::Config::mBenchmarkName = "noname"

Definition at line 389 of file nanobench.h.

◆ mBenchmarkTitle

std::string ankerl::nanobench::Config::mBenchmarkTitle = "benchmark"

Definition at line 388 of file nanobench.h.

◆ mClockResolutionMultiple

size_t ankerl::nanobench::Config::mClockResolutionMultiple = static_cast<size_t>(1000)

Definition at line 394 of file nanobench.h.

◆ mComplexityN

double ankerl::nanobench::Config::mComplexityN = -1.0

Definition at line 392 of file nanobench.h.

◆ mContext

std::unordered_map<std::string, std::string> ankerl::nanobench::Config::mContext {}

Definition at line 406 of file nanobench.h.

◆ mEpochIterations

uint64_t ankerl::nanobench::Config::mEpochIterations {0}

Definition at line 399 of file nanobench.h.

◆ mIsRelative

bool ankerl::nanobench::Config::mIsRelative = false

Definition at line 405 of file nanobench.h.

◆ mMaxEpochTime

std::chrono::nanoseconds ankerl::nanobench::Config::mMaxEpochTime = std::chrono::milliseconds(100)

Definition at line 395 of file nanobench.h.

◆ mMinEpochIterations

uint64_t ankerl::nanobench::Config::mMinEpochIterations {1}

Definition at line 397 of file nanobench.h.

◆ mMinEpochTime

std::chrono::nanoseconds ankerl::nanobench::Config::mMinEpochTime = std::chrono::milliseconds(1)

Definition at line 396 of file nanobench.h.

◆ mNumEpochs

size_t ankerl::nanobench::Config::mNumEpochs = 11

Definition at line 393 of file nanobench.h.

◆ mOut

std::ostream* ankerl::nanobench::Config::mOut = nullptr

Definition at line 401 of file nanobench.h.

◆ mShowPerformanceCounters

bool ankerl::nanobench::Config::mShowPerformanceCounters = true

Definition at line 404 of file nanobench.h.

◆ mTimeUnit

std::chrono::duration<double> ankerl::nanobench::Config::mTimeUnit = std::chrono::nanoseconds{1}

Definition at line 402 of file nanobench.h.

◆ mTimeUnitName

std::string ankerl::nanobench::Config::mTimeUnitName = "ns"

Definition at line 403 of file nanobench.h.

◆ mUnit

std::string ankerl::nanobench::Config::mUnit = "op"

Definition at line 390 of file nanobench.h.

◆ mWarmup

uint64_t ankerl::nanobench::Config::mWarmup = 0

Definition at line 400 of file nanobench.h.


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