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

Function ExportArray

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

Source from the content-addressed store, hash-verified

78}
79
80static void ExportArray(benchmark::State& state) { // NOLINT non-const reference
81 struct ArrowArray c_export;
82 auto array = arrow::ArrayFromJSON(utf8(), R"(["foo", "bar", null])");
83
84 for (auto _ : state) {
85 ABORT_NOT_OK(::arrow::ExportArray(*array, &c_export));
86 ArrowArrayRelease(&c_export);
87 }
88 state.SetItemsProcessed(state.iterations());
89}
90
91static void ExportRecordBatch(benchmark::State& state) { // NOLINT non-const reference
92 struct ArrowArray c_export;

Callers 1

ExportImportArrayFunction · 0.70

Calls 2

ArrayFromJSONFunction · 0.85
ArrowArrayReleaseFunction · 0.85

Tested by

no test coverage detected