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

Function BuildAdaptiveIntNoNulls

cpp/src/arrow/builder_benchmark.cc:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void BuildAdaptiveIntNoNulls(
81 benchmark::State& state) { // NOLINT non-const reference
82 for (auto _ : state) {
83 AdaptiveIntBuilder builder(memory_tracker.memory_pool());
84
85 for (int i = 0; i < kRounds; i++) {
86 ABORT_NOT_OK(builder.AppendValues(kData.data(), kData.size(), nullptr));
87 }
88
89 std::shared_ptr<Array> out;
90 ABORT_NOT_OK(builder.Finish(&out));
91 }
92
93 state.SetBytesProcessed(state.iterations() * kBytesProcessed);
94 state.SetItemsProcessed(state.iterations() * kItemsProcessed);
95}
96
97static void BuildAdaptiveIntNoNullsScalarAppend(
98 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