MCPcopy Create free account
hub / github.com/LUX-Core/lux / BenchMarkByNameKeyLess

Function BenchMarkByNameKeyLess

src/cryptopp/bench1.cpp:237–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236template <class T>
237void BenchMarkByNameKeyLess(const char *factoryName, const char *displayName=NULL, const NameValuePairs &params = g_nullNameValuePairs)
238{
239 CRYPTOPP_UNUSED(params);
240 std::string name = factoryName;
241 if (displayName)
242 name = displayName;
243
244 member_ptr<T> obj(ObjectFactoryRegistry<T>::Registry().CreateObject(factoryName));
245 BenchMark(name.c_str(), *obj, g_allocatedTime);
246}
247
248void BenchmarkAll(double t, double hertz)
249{

Callers

nothing calls this directly

Calls 2

BenchMarkFunction · 0.85
CreateObjectMethod · 0.45

Tested by

no test coverage detected