From d3a398281c6fd1d3672036cb2d63f842d2cb28c5 Mon Sep 17 00:00:00 2001 From: Anton Samokhvalov <pg83@yandex.ru> Date: Thu, 10 Feb 2022 16:45:17 +0300 Subject: Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. --- library/cpp/digest/md5/bench/main.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'library/cpp/digest/md5/bench/main.cpp') 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) -- cgit v1.2.3