MCPcopy Create free account
hub / github.com/apache/arrow / MakeLargeString

Function MakeLargeString

cpp/src/arrow/util/utf8_util_benchmark.cc:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 "とUnicodeで使える8ビット符号単位の文字符号化形式及び文字符号化スキーム。 ";
51
52static std::string MakeLargeString(const std::string& base, int64_t nbytes) {
53 int64_t nrepeats = (nbytes + base.size() - 1) / base.size();
54 std::string s;
55 s.reserve(nrepeats * nbytes);
56 for (int64_t i = 0; i < nrepeats; ++i) {
57 s += base;
58 }
59 return s;
60}
61
62static void BenchmarkUTF8Validation(
63 benchmark::State& state, // NOLINT non-const reference

Callers 3

ValidateLargeAsciiFunction · 0.85
ValidateLargeAlmostAsciiFunction · 0.85
ValidateLargeNonAsciiFunction · 0.85

Calls 2

sizeMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected