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

Function BuildAdaptiveIntNoNullsScalarAppend

cpp/src/arrow/builder_benchmark.cc:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static void BuildAdaptiveIntNoNullsScalarAppend(
98 benchmark::State& state) { // NOLINT non-const reference
99 for (auto _ : state) {
100 AdaptiveIntBuilder builder(memory_tracker.memory_pool());
101
102 for (int i = 0; i < kRounds; i++) {
103 for (size_t j = 0; j < kData.size(); j++) {
104 ABORT_NOT_OK(builder.Append(kData[i]))
105 }
106 }
107
108 std::shared_ptr<Array> out;
109 ABORT_NOT_OK(builder.Finish(&out));
110 }
111
112 state.SetBytesProcessed(state.iterations() * kBytesProcessed);
113 state.SetItemsProcessed(state.iterations() * kItemsProcessed);
114}
115
116static void BuildBooleanArrayNoNulls(
117 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

memory_poolMethod · 0.45
sizeMethod · 0.45
AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected