diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/digest/benchmark/murmur | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/digest/benchmark/murmur')
-rw-r--r-- | util/digest/benchmark/murmur/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/digest/benchmark/murmur/main.cpp b/util/digest/benchmark/murmur/main.cpp index 7729ef345f..1fe2fdcc21 100644 --- a/util/digest/benchmark/murmur/main.cpp +++ b/util/digest/benchmark/murmur/main.cpp @@ -6,21 +6,21 @@ #include <array> constexpr auto MakeTestData() { - std::array<ui64, 4096> result; - for (ui64 i = 0; i < result.size(); ++i) { - result[i] = i; - } - return result; + std::array<ui64, 4096> result; + for (ui64 i = 0; i < result.size(); ++i) { + result[i] = i; + } + return result; } constexpr auto TEST_DATA = MakeTestData(); template <typename Result> static void BenchmarkMurmurHash(benchmark::State& state) { - for (auto _ : state) { + for (auto _ : state) { Result hash = MurmurHash<Result>(TEST_DATA.data(), sizeof(TEST_DATA)); Y_DO_NOT_OPTIMIZE_AWAY(hash); - } + } } BENCHMARK_TEMPLATE(BenchmarkMurmurHash, ui32); |