| 23 | |
| 24 | template <typename T> |
| 25 | void 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 | |
| 32 | Y_CPU_BENCHMARK(AllocPromiseVoid, iface) { |
| 33 | TestAllocPromise<void>(iface); |
nothing calls this directly
no test coverage detected