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

Function BuildIntArrayNoNulls

cpp/src/arrow/builder_benchmark.cc:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62static std::string_view kBinaryView(kBinaryString);
63
64static void BuildIntArrayNoNulls(benchmark::State& state) { // NOLINT non-const reference
65 for (auto _ : state) {
66 Int64Builder builder(memory_tracker.memory_pool());
67
68 for (int i = 0; i < kRounds; i++) {
69 ABORT_NOT_OK(builder.AppendValues(kData.data(), kData.size(), nullptr));
70 }
71
72 std::shared_ptr<Array> out;
73 ABORT_NOT_OK(builder.Finish(&out));
74 }
75
76 state.SetBytesProcessed(state.iterations() * kBytesProcessed);
77 state.SetItemsProcessed(state.iterations() * kItemsProcessed);
78}
79
80static void BuildAdaptiveIntNoNulls(
81 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 5

memory_poolMethod · 0.45
AppendValuesMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected