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

Function BuildBooleanArrayNoNulls

cpp/src/arrow/builder_benchmark.cc:116–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static void BuildBooleanArrayNoNulls(
117 benchmark::State& state) { // NOLINT non-const reference
118
119 size_t n_bytes = kBytesProcessPerRound;
120 const uint8_t* data = reinterpret_cast<const uint8_t*>(kData.data());
121
122 for (auto _ : state) {
123 BooleanBuilder builder(memory_tracker.memory_pool());
124
125 for (int i = 0; i < kRounds; i++) {
126 ABORT_NOT_OK(builder.AppendValues(data, n_bytes));
127 }
128
129 std::shared_ptr<Array> out;
130 ABORT_NOT_OK(builder.Finish(&out));
131 }
132
133 state.SetBytesProcessed(state.iterations() * kBytesProcessed);
134 state.SetItemsProcessed(state.iterations() * kItemsProcessed);
135}
136
137static void BuildBinaryArray(benchmark::State& state) { // NOLINT non-const reference
138 for (auto _ : state) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected