blob: 1d04c00bf616d9967c373ae5116b3ef8758efdca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <library/cpp/testing/benchmark/bench.h>
#include <util/generic/ptr.h>
#include <util/generic/xrange.h>
struct X: public TAtomicRefCount<X> {
};
Y_CPU_BENCHMARK(SimplePtrConstruct, iface) {
for (const auto i : xrange(iface.Iterations())) {
Y_UNUSED(i);
Y_DO_NOT_OPTIMIZE_AWAY(TSimpleIntrusivePtr<X>());
}
}
|