diff options
| author | danila-eremin <[email protected]> | 2022-02-10 16:46:21 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:21 +0300 |
| commit | 9d80afb43be16931e653a688c5e0f585101ff4f8 (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/digest/md5/bench/main.cpp | |
| parent | 358e631d1a69242d3ae4d6e6b1e4f7581d03133b (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/md5/bench/main.cpp')
| -rw-r--r-- | library/cpp/digest/md5/bench/main.cpp | 12 |
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 e633a647041..70672e67413 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) |
