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
commit358e631d1a69242d3ae4d6e6b1e4f7581d03133b (patch)
treedb997f29fd5f1b32ede8ce681a7c73ec0a0714d0 /library/cpp/digest/md5/bench/main.cpp
parentbf23f1e45d4627b54a70900ef362c1be748cc787 (diff)
downloadydb-358e631d1a69242d3ae4d6e6b1e4f7581d03133b.tar.gz
Restoring authorship annotation for <danila-eremin@yandex-team.ru>. Commit 1 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 70672e6741..e633a64704 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)