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

Function ExportImportArray

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

Source from the content-addressed store, hash-verified

122}
123
124static void ExportImportArray(benchmark::State& state) { // NOLINT non-const reference
125 struct ArrowArray c_export;
126 auto array = arrow::ArrayFromJSON(utf8(), R"(["foo", "bar", null])");
127 auto type = array->type();
128
129 for (auto _ : state) {
130 ABORT_NOT_OK(::arrow::ExportArray(*array, &c_export));
131 ImportArray(&c_export, type).ValueOrDie();
132 }
133 state.SetItemsProcessed(state.iterations());
134}
135
136static void ExportImportRecordBatch(
137 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 5

ArrayFromJSONFunction · 0.85
ValueOrDieMethod · 0.80
ExportArrayFunction · 0.70
ImportArrayFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected