![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <nanobench.h>
Public Types | |
| enum class | Measure : size_t { elapsed , iterations , pagefaults , cpucycles , contextswitches , instructions , branchinstructions , branchmisses , _size } |
Public Member Functions | |
| Result (Config benchmarkConfig) | |
| ~Result () | |
| Result & | operator= (Result const &other) |
| Result & | operator= (Result &&other) noexcept(ANKERL_NANOBENCH(NOEXCEPT_STRING_MOVE)) |
| Result (Result const &other) | |
| Result (Result &&other) noexcept | |
| void | add (Clock::duration totalElapsed, uint64_t iters, detail::PerformanceCounters const &pc) |
| ANKERL_NANOBENCH (NODISCARD) Config const &config() const noexcept | |
| ANKERL_NANOBENCH (NODISCARD) double median(Measure m) const | |
| ANKERL_NANOBENCH (NODISCARD) double medianAbsolutePercentError(Measure m) const | |
| ANKERL_NANOBENCH (NODISCARD) double average(Measure m) const | |
| ANKERL_NANOBENCH (NODISCARD) double sum(Measure m) const noexcept | |
| ANKERL_NANOBENCH (NODISCARD) double sumProduct(Measure m1 | |
| ANKERL_NANOBENCH (NODISCARD) double minimum(Measure m) const noexcept | |
| ANKERL_NANOBENCH (NODISCARD) double maximum(Measure m) const noexcept | |
| ANKERL_NANOBENCH(NODISCARD) std ANKERL_NANOBENCH(NODISCARD) std | ANKERL_NANOBENCH (NODISCARD) bool has(Measure m) const noexcept |
| ANKERL_NANOBENCH (NODISCARD) double get(size_t idx | |
| ANKERL_NANOBENCH (NODISCARD) bool empty() const noexcept | |
| ANKERL_NANOBENCH (NODISCARD) size_t size() const noexcept | |
Static Public Member Functions | |
| static Measure | fromString (std::string const &str) |
Public Attributes | |
| Measure m2 const | noexcept |
| Measure m | const |
Private Attributes | |
| Config | mConfig {} |
| std::vector< std::vector< double > > | mNameToMeasurements {} |
Definition at line 419 of file nanobench.h.
|
strong |
| Enumerator | |
|---|---|
| elapsed | |
| iterations | |
| pagefaults | |
| cpucycles | |
| contextswitches | |
| instructions | |
| branchinstructions | |
| branchmisses | |
| _size | |
Definition at line 421 of file nanobench.h.
|
explicit |
| ankerl::nanobench::Result::~Result | ( | ) |
| ankerl::nanobench::Result::Result | ( | Result const & | other | ) |
|
noexcept |
| void ankerl::nanobench::Result::add | ( | Clock::duration | totalElapsed, |
| uint64_t | iters, | ||
| detail::PerformanceCounters const & | pc ) |
|
noexcept |
|
noexcept |
|
noexcept |
| ankerl::nanobench::Result::ANKERL_NANOBENCH | ( | NODISCARD | ) | const |
| ankerl::nanobench::Result::ANKERL_NANOBENCH | ( | NODISCARD | ) |
|
noexcept |
| ankerl::nanobench::Result::ANKERL_NANOBENCH | ( | NODISCARD | ) | const |
| ankerl::nanobench::Result::ANKERL_NANOBENCH | ( | NODISCARD | ) | const |
|
noexcept |
|
noexcept |
| ankerl::nanobench::Result::ANKERL_NANOBENCH | ( | NODISCARD | ) |
|
noexcept |
| Measure m ankerl::nanobench::Result::const |
Definition at line 458 of file nanobench.h.
|
private |
Definition at line 466 of file nanobench.h.
|
private |
Definition at line 467 of file nanobench.h.
Definition at line 451 of file nanobench.h.