diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/digest/benchmark | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/digest/benchmark')
-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 1fe2fdcc21..7729ef345f 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); |