aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/base64/bench/main.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/string_utils/base64/bench/main.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/base64/bench/main.cpp')
-rw-r--r--library/cpp/string_utils/base64/bench/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/string_utils/base64/bench/main.cpp b/library/cpp/string_utils/base64/bench/main.cpp
index 10e09bc1c7..2b371cd3f1 100644
--- a/library/cpp/string_utils/base64/bench/main.cpp
+++ b/library/cpp/string_utils/base64/bench/main.cpp
@@ -4,7 +4,7 @@
#include <util/generic/buffer.h>
#include <util/generic/singleton.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <util/generic/vector.h>
#include <util/generic/xrange.h>
#include <util/generic/yexception.h>
@@ -12,9 +12,9 @@
#include <array>
-static TString GenerateRandomData(const size_t minSize, const size_t maxSize) {
+static TString GenerateRandomData(const size_t minSize, const size_t maxSize) {
Y_ENSURE(minSize <= maxSize, "wow");
- TString r;
+ TString r;
for (size_t i = 0; i < minSize; ++i) {
r.push_back(RandomNumber<char>());
}
@@ -32,8 +32,8 @@ static TString GenerateRandomData(const size_t minSize, const size_t maxSize) {
}
template <size_t N>
-static std::array<TString, N> GenerateRandomDataVector(const size_t minSize, const size_t maxSize) {
- std::array<TString, N> r;
+static std::array<TString, N> GenerateRandomDataVector(const size_t minSize, const size_t maxSize) {
+ std::array<TString, N> r;
for (size_t i = 0; i < N; ++i) {
r[i] = GenerateRandomData(minSize, maxSize);
}
@@ -42,8 +42,8 @@ static std::array<TString, N> GenerateRandomDataVector(const size_t minSize, con
}
template <size_t N>
-static std::array<TString, N> Encode(const std::array<TString, N>& d) {
- std::array<TString, N> r;
+static std::array<TString, N> Encode(const std::array<TString, N>& d) {
+ std::array<TString, N> r;
for (size_t i = 0, iEnd = d.size(); i < iEnd; ++i) {
r[i] = Base64Encode(d[i]);
}
@@ -67,8 +67,8 @@ namespace {
}
static constexpr size_t Size = N;
- const std::array<TString, N> Data;
- const std::array<TString, N> DataEncoded;
+ const std::array<TString, N> Data;
+ const std::array<TString, N> DataEncoded;
std::array<TBuffer, N> PlaceToEncode;
std::array<TBuffer, N> PlaceToDecode;
};