| 78 | } |
| 79 | |
| 80 | static 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 | |
| 91 | static void ExportRecordBatch(benchmark::State& state) { // NOLINT non-const reference |
| 92 | struct ArrowArray c_export; |
no test coverage detected