aboutsummaryrefslogtreecommitdiffstats
path: root/util/digest/benchmark
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/digest/benchmark
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/digest/benchmark')
-rw-r--r--util/digest/benchmark/murmur/main.cpp40
-rw-r--r--util/digest/benchmark/murmur/ya.make14
-rw-r--r--util/digest/benchmark/ya.make6
3 files changed, 30 insertions, 30 deletions
diff --git a/util/digest/benchmark/murmur/main.cpp b/util/digest/benchmark/murmur/main.cpp
index 49f5d891f4..1fe2fdcc21 100644
--- a/util/digest/benchmark/murmur/main.cpp
+++ b/util/digest/benchmark/murmur/main.cpp
@@ -1,27 +1,27 @@
-#include <contrib/libs/benchmark/include/benchmark/benchmark.h>
-
-#include <util/digest/murmur.h>
-#include <util/system/types.h>
-
-#include <array>
-
-constexpr auto MakeTestData() {
+#include <contrib/libs/benchmark/include/benchmark/benchmark.h>
+
+#include <util/digest/murmur.h>
+#include <util/system/types.h>
+
+#include <array>
+
+constexpr auto MakeTestData() {
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) {
+}
+
+constexpr auto TEST_DATA = MakeTestData();
+
+template <typename Result>
+static void BenchmarkMurmurHash(benchmark::State& state) {
for (auto _ : state) {
- Result hash = MurmurHash<Result>(TEST_DATA.data(), sizeof(TEST_DATA));
- Y_DO_NOT_OPTIMIZE_AWAY(hash);
+ Result hash = MurmurHash<Result>(TEST_DATA.data(), sizeof(TEST_DATA));
+ Y_DO_NOT_OPTIMIZE_AWAY(hash);
}
-}
-
-BENCHMARK_TEMPLATE(BenchmarkMurmurHash, ui32);
-BENCHMARK_TEMPLATE(BenchmarkMurmurHash, ui64);
+}
+
+BENCHMARK_TEMPLATE(BenchmarkMurmurHash, ui32);
+BENCHMARK_TEMPLATE(BenchmarkMurmurHash, ui64);
diff --git a/util/digest/benchmark/murmur/ya.make b/util/digest/benchmark/murmur/ya.make
index 30ad603129..39559996ab 100644
--- a/util/digest/benchmark/murmur/ya.make
+++ b/util/digest/benchmark/murmur/ya.make
@@ -1,7 +1,7 @@
-G_BENCHMARK()
-
-SRCS(
- main.cpp
-)
-
-END()
+G_BENCHMARK()
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/util/digest/benchmark/ya.make b/util/digest/benchmark/ya.make
index 20a2b40bca..bfc0faff9e 100644
--- a/util/digest/benchmark/ya.make
+++ b/util/digest/benchmark/ya.make
@@ -1,3 +1,3 @@
-RECURSE(
- murmur
-)
+RECURSE(
+ murmur
+)