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

Function ExportImportSchema

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

Source from the content-addressed store, hash-verified

111}
112
113static void ExportImportSchema(benchmark::State& state) { // NOLINT non-const reference
114 struct ArrowSchema c_export;
115 auto schema = ExampleSchema();
116
117 for (auto _ : state) {
118 ABORT_NOT_OK(::arrow::ExportSchema(*schema, &c_export));
119 ImportSchema(&c_export).ValueOrDie();
120 }
121 state.SetItemsProcessed(state.iterations());
122}
123
124static void ExportImportArray(benchmark::State& state) { // NOLINT non-const reference
125 struct ArrowArray c_export;

Callers

nothing calls this directly

Calls 4

ExampleSchemaFunction · 0.85
ValueOrDieMethod · 0.80
ExportSchemaFunction · 0.70
ImportSchemaFunction · 0.70

Tested by

no test coverage detected