aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/md5/bench/main.cpp
diff options
context:
space:
mode:
authordanila-eremin <danila-eremin@yandex-team.ru>2022-02-10 16:46:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:21 +0300
commit9d80afb43be16931e653a688c5e0f585101ff4f8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/digest/md5/bench/main.cpp
parent358e631d1a69242d3ae4d6e6b1e4f7581d03133b (diff)
downloadydb-9d80afb43be16931e653a688c5e0f585101ff4f8.tar.gz
Restoring authorship annotation for <danila-eremin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/md5/bench/main.cpp')
-rw-r--r--library/cpp/digest/md5/bench/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/digest/md5/bench/main.cpp b/library/cpp/digest/md5/bench/main.cpp
index e633a64704..70672e6741 100644
--- a/library/cpp/digest/md5/bench/main.cpp
+++ b/library/cpp/digest/md5/bench/main.cpp
@@ -1,15 +1,15 @@
-#include <benchmark/benchmark.h>
-
+#include <benchmark/benchmark.h>
+
#include <library/cpp/digest/md5/md5.h>
#define MD5_DEF(N) \
- static void MD5Benchmark_##N(benchmark::State& st) { \
+ static void MD5Benchmark_##N(benchmark::State& st) { \
char buf[N]; \
- for (auto _ : st) { \
+ for (auto _ : st) { \
Y_DO_NOT_OPTIMIZE_AWAY(MD5().Update(buf, sizeof(buf))); \
} \
- } \
- BENCHMARK(MD5Benchmark_##N);
+ } \
+ BENCHMARK(MD5Benchmark_##N);
MD5_DEF(32)
MD5_DEF(64)