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

Function TestSetPromise

library/cpp/threading/future/perf/main.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <typename T>
25void TestSetPromise(const NBench::NCpu::TParams& iface, T value) {
26 for (const auto it : xrange(iface.Iterations())) {
27 Y_UNUSED(it);
28 Y_DO_NOT_OPTIMIZE_AWAY(SetPromise(value));
29 }
30}
31
32Y_CPU_BENCHMARK(AllocPromiseVoid, iface) {
33 TestAllocPromise<void>(iface);

Callers

nothing calls this directly

Calls 4

xrangeFunction · 0.85
Y_UNUSEDFunction · 0.85
SetPromiseFunction · 0.85
IterationsMethod · 0.45

Tested by

no test coverage detected