MCPcopy Create free account
hub / github.com/catboost/catboost / BMToString

Function BMToString

tools/enum_parser/parse_enum/benchmark/main.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30 template <class TEnum, class TContext>
31 void BMToString(TContext& iface) {
32 const auto values = SelectValues<TEnum>(5u);
33 for (const auto iter : xrange(iface.Iterations())) {
34 Y_UNUSED(iter);
35 for (const auto value : values) {
36 Y_DO_NOT_OPTIMIZE_AWAY(ToString(value).size());
37 }
38 }
39 }
40
41 template <class TEnum, class TContext>
42 void BMOut(TContext& iface) {

Callers

nothing calls this directly

Calls 5

xrangeFunction · 0.85
Y_UNUSEDFunction · 0.85
ToStringFunction · 0.50
IterationsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected