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

Function BenchToString

util/datetime/benchmark/format/main.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31Y_FORCE_INLINE static void BenchToString(auto&& toStringFn, benchmark::State& state) {
32 TTimestampGenerator gen;
33 TString s;
34 for (auto _ : state) {
35 s = toStringFn(gen());
36 Y_DO_NOT_OPTIMIZE_AWAY(s);
37 }
38}
39
40void BM_FormatIsoLocal(benchmark::State& state) {
41 BenchFormatStream(FormatIsoLocal, state);

Callers 2

BM_ToStringIsoLocalFunction · 0.85
BM_ToStringLocalFunction · 0.85

Calls 1

genFunction · 0.85

Tested by

no test coverage detected