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

Function BuildStringDictionaryArray

cpp/src/arrow/builder_benchmark.cc:388–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388static void BuildStringDictionaryArray(
389 benchmark::State& state) { // NOLINT non-const reference
390 const auto fodder = MakeStringDictFodder();
391 auto fodder_nbytes =
392 std::accumulate(fodder.begin(), fodder.end(), 0ULL,
393 [&](size_t acc, const std::string& s) { return acc + s.size(); });
394 BenchmarkDictionaryArray<BinaryDictionaryBuilder>(state, fodder, fodder_nbytes);
395}
396
397static void ArrayDataConstructDestruct(
398 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

MakeStringDictFodderFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected