| 134 | } |
| 135 | |
| 136 | static void ExportImportRecordBatch( |
| 137 | benchmark::State& state) { // NOLINT non-const reference |
| 138 | struct ArrowArray c_export; |
| 139 | auto batch = ExampleRecordBatch(); |
| 140 | auto schema = batch->schema(); |
| 141 | |
| 142 | for (auto _ : state) { |
| 143 | ABORT_NOT_OK(::arrow::ExportRecordBatch(*batch, &c_export)); |
| 144 | ImportRecordBatch(&c_export, schema).ValueOrDie(); |
| 145 | } |
| 146 | state.SetItemsProcessed(state.iterations()); |
| 147 | } |
| 148 | |
| 149 | BENCHMARK(ExportType); |
| 150 | BENCHMARK(ExportSchema); |
nothing calls this directly
no test coverage detected