MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / SameCounterNames

Function SameCounterNames

src/benchmark/Performance.cpp:619–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619bool SameCounterNames(const benchmark::UserCounters& lhs,
620 const benchmark::UserCounters& rhs) {
621 if (lhs.size() != rhs.size()) {
622 return false;
623 }
624 auto lhs_it = lhs.begin();
625 auto rhs_it = rhs.begin();
626 while (lhs_it != lhs.end() && rhs_it != rhs.end()) {
627 if (lhs_it->first != rhs_it->first) {
628 return false;
629 }
630 ++lhs_it;
631 ++rhs_it;
632 }
633 return true;
634}
635
636class ThroughputConsoleReporter : public benchmark::ConsoleReporter {
637public:

Callers 1

ReportRunsMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected