| 67 | } |
| 68 | |
| 69 | static void ExportSchema(benchmark::State& state) { // NOLINT non-const reference |
| 70 | struct ArrowSchema c_export; |
| 71 | auto schema = ExampleSchema(); |
| 72 | |
| 73 | for (auto _ : state) { |
| 74 | ABORT_NOT_OK(::arrow::ExportSchema(*schema, &c_export)); |
| 75 | ArrowSchemaRelease(&c_export); |
| 76 | } |
| 77 | state.SetItemsProcessed(state.iterations()); |
| 78 | } |
| 79 | |
| 80 | static void ExportArray(benchmark::State& state) { // NOLINT non-const reference |
| 81 | struct ArrowArray c_export; |
no test coverage detected