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

Function Y_CPU_BENCHMARK

library/cpp/testing/benchmark/examples/main.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <util/generic/yexception.h>
8
9Y_CPU_BENCHMARK(F, iface) {
10 TVector<size_t> x;
11
12 x.reserve(iface.Iterations());
13
14 for (size_t i = 0; i < iface.Iterations(); ++i) {
15 x.push_back(i);
16 }
17}
18
19Y_CPU_BENCHMARK(EmptyF, iface) {
20 (void)iface;

Callers

nothing calls this directly

Calls 13

CurrentExceptionMessageFunction · 0.85
usleepFunction · 0.85
FS1Function · 0.85
ClobberFunction · 0.85
FS2Function · 0.85
FS1_2Function · 0.85
FS2_2Function · 0.85
FFFFunction · 0.70
EscapeFunction · 0.50
reserveMethod · 0.45
IterationsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected