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

Function ExportImportType

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

Source from the content-addressed store, hash-verified

100}
101
102static void ExportImportType(benchmark::State& state) { // NOLINT non-const reference
103 struct ArrowSchema c_export;
104 auto type = utf8();
105
106 for (auto _ : state) {
107 ABORT_NOT_OK(::arrow::ExportType(*type, &c_export));
108 ImportType(&c_export).ValueOrDie();
109 }
110 state.SetItemsProcessed(state.iterations());
111}
112
113static void ExportImportSchema(benchmark::State& state) { // NOLINT non-const reference
114 struct ArrowSchema c_export;

Callers

nothing calls this directly

Calls 3

ValueOrDieMethod · 0.80
ExportTypeFunction · 0.70
ImportTypeFunction · 0.70

Tested by

no test coverage detected