| 122 | } |
| 123 | |
| 124 | static 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 | |
| 136 | static void ExportImportRecordBatch( |
| 137 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected