| 135 | } |
| 136 | |
| 137 | static void BuildBinaryArray(benchmark::State& state) { // NOLINT non-const reference |
| 138 | for (auto _ : state) { |
| 139 | BinaryBuilder builder(memory_tracker.memory_pool()); |
| 140 | |
| 141 | for (int64_t i = 0; i < kRounds * kNumberOfElements; i++) { |
| 142 | ABORT_NOT_OK(builder.Append(kBinaryView)); |
| 143 | } |
| 144 | |
| 145 | std::shared_ptr<Array> out; |
| 146 | ABORT_NOT_OK(builder.Finish(&out)); |
| 147 | } |
| 148 | |
| 149 | state.SetBytesProcessed(state.iterations() * kBytesProcessed); |
| 150 | state.SetItemsProcessed(state.iterations() * kItemsProcessed); |
| 151 | } |
| 152 | |
| 153 | static void BuildInlineBinaryViewArray( |
| 154 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected