diff options
author | gusev-p <gusev-p@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
commit | 47af3b5bf148ddab250833ec454d30d7c4930c31 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/testing/benchmark/bench.h | |
parent | 1715700d00b30399d3648be821fd585ae552365e (diff) | |
download | ydb-47af3b5bf148ddab250833ec454d30d7c4930c31.tar.gz |
Restoring authorship annotation for <gusev-p@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/benchmark/bench.h')
-rw-r--r-- | library/cpp/testing/benchmark/bench.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/testing/benchmark/bench.h b/library/cpp/testing/benchmark/bench.h index 4225a31fd3..21551ad0dd 100644 --- a/library/cpp/testing/benchmark/bench.h +++ b/library/cpp/testing/benchmark/bench.h @@ -1,9 +1,9 @@ #pragma once -#include <util/system/compiler.h> +#include <util/system/compiler.h> #include <util/system/types.h> -#include <utility> +#include <utility> namespace NBench { namespace NCpu { @@ -71,14 +71,14 @@ namespace NBench { } #endif - /** - * Use this function to prevent unused variables elimination. - * - * @param Unused variable (e.g. return value of benchmarked function). - */ + /** + * Use this function to prevent unused variables elimination. + * + * @param Unused variable (e.g. return value of benchmarked function). + */ template <typename T> Y_FORCE_INLINE void DoNotOptimize(T&& datum) { - ::DoNotOptimizeAway(std::forward<T>(datum)); + ::DoNotOptimizeAway(std::forward<T>(datum)); } int Main(int argc, char** argv); |