MCPcopy Create free account
hub / github.com/coolxv/cpp-stub / BenchmarkFunction

Class BenchmarkFunction

ut_examples/catch2/ut/include/catch.hpp:6707–6768  ·  view source on GitHub ↗

We need to reinvent std::function because every piece of code that might add overhead in a measurement context needs to have consistent performance characteristics so that we can account for it in the measurement. Implementations of std::function with optimizations that aren't always applicable, like small buffer optimizations, are not uncommon. This is effectively an implementation of std::functi

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

catch.hppFile · 0.85

Calls 2

cloneMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected