MCPcopy Create free account
hub / github.com/ElementsProject/elements / minimum

Method minimum

src/bench/nanobench.h:2970–2978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2968}
2969
2970double Result::minimum(Measure m) const noexcept {
2971 auto const& data = mNameToMeasurements[detail::u(m)];
2972 if (data.empty()) {
2973 return 0.0;
2974 }
2975
2976 // here its save to assume that at least one element is there
2977 return *std::min_element(data.begin(), data.end());
2978}
2979
2980double Result::maximum(Measure m) const noexcept {
2981 auto const& data = mNameToMeasurements[detail::u(m)];

Callers 1

nanobench.hFile · 0.80

Calls 4

uFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected