aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/md5/bench
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/digest/md5/bench
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/md5/bench')
-rw-r--r--library/cpp/digest/md5/bench/main.cpp24
-rw-r--r--library/cpp/digest/md5/bench/ya.make20
2 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/digest/md5/bench/main.cpp b/library/cpp/digest/md5/bench/main.cpp
index a987eefe59..70672e6741 100644
--- a/library/cpp/digest/md5/bench/main.cpp
+++ b/library/cpp/digest/md5/bench/main.cpp
@@ -1,19 +1,19 @@
#include <benchmark/benchmark.h>
#include <library/cpp/digest/md5/md5.h>
-
-#define MD5_DEF(N) \
+
+#define MD5_DEF(N) \
static void MD5Benchmark_##N(benchmark::State& st) { \
- char buf[N]; \
+ char buf[N]; \
for (auto _ : st) { \
- Y_DO_NOT_OPTIMIZE_AWAY(MD5().Update(buf, sizeof(buf))); \
- } \
+ Y_DO_NOT_OPTIMIZE_AWAY(MD5().Update(buf, sizeof(buf))); \
+ } \
} \
BENCHMARK(MD5Benchmark_##N);
-
-MD5_DEF(32)
-MD5_DEF(64)
-MD5_DEF(128)
-
-MD5_DEF(1024)
-MD5_DEF(2048)
+
+MD5_DEF(32)
+MD5_DEF(64)
+MD5_DEF(128)
+
+MD5_DEF(1024)
+MD5_DEF(2048)
diff --git a/library/cpp/digest/md5/bench/ya.make b/library/cpp/digest/md5/bench/ya.make
index 0c19f330a0..5c3e3c1c42 100644
--- a/library/cpp/digest/md5/bench/ya.make
+++ b/library/cpp/digest/md5/bench/ya.make
@@ -1,16 +1,16 @@
G_BENCHMARK()
-
+
OWNER(
pg
g:util
)
-
-PEERDIR(
+
+PEERDIR(
library/cpp/digest/md5
-)
-
-SRCS(
- main.cpp
-)
-
-END()
+)
+
+SRCS(
+ main.cpp
+)
+
+END()