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

Function ExportImportRecordBatch

cpp/src/arrow/c/bridge_benchmark.cc:136–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static void ExportImportRecordBatch(
137 benchmark::State& state) { // NOLINT non-const reference
138 struct ArrowArray c_export;
139 auto batch = ExampleRecordBatch();
140 auto schema = batch->schema();
141
142 for (auto _ : state) {
143 ABORT_NOT_OK(::arrow::ExportRecordBatch(*batch, &c_export));
144 ImportRecordBatch(&c_export, schema).ValueOrDie();
145 }
146 state.SetItemsProcessed(state.iterations());
147}
148
149BENCHMARK(ExportType);
150BENCHMARK(ExportSchema);

Callers

nothing calls this directly

Calls 5

ExampleRecordBatchFunction · 0.85
ValueOrDieMethod · 0.80
ExportRecordBatchFunction · 0.70
ImportRecordBatchFunction · 0.70
schemaMethod · 0.45

Tested by

no test coverage detected