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

Function BuildNonInlineBinaryViewArray

cpp/src/arrow/builder_benchmark.cc:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static void BuildNonInlineBinaryViewArray(
174 benchmark::State& state) { // NOLINT non-const reference
175 const char* kLargeBinaryString = "12345678901234567890123456789012345678901234567890";
176 for (auto _ : state) {
177 BinaryViewBuilder builder(memory_tracker.memory_pool());
178
179 for (int64_t i = 0; i < kRounds * kNumberOfElements; i++) {
180 ABORT_NOT_OK(builder.Append(kLargeBinaryString));
181 }
182
183 std::shared_ptr<Array> out;
184 ABORT_NOT_OK(builder.Finish(&out));
185 }
186
187 state.SetBytesProcessed(state.iterations() * kBytesProcessed);
188 state.SetItemsProcessed(state.iterations() * kItemsProcessed);
189}
190
191static void BuildChunkedBinaryArray(
192 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 3

memory_poolMethod · 0.45
AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected