| 171 | } |
| 172 | |
| 173 | static void BuildNonInlineBinaryViewArray( |
| 174 | benchmark::State& state) { // NOLINT non-const reference |
| 175 | const char* kLargeBinaryString = "12345678901234567890123456789012345678901234567890"; |
| 176 | for (auto _ : state) { |
| 177 | BinaryViewBuilder builder(memory_tracker.memory_pool()); |
| 178 | |
| 179 | for (int64_t i = 0; i < kRounds * kNumberOfElements; i++) { |
| 180 | ABORT_NOT_OK(builder.Append(kLargeBinaryString)); |
| 181 | } |
| 182 | |
| 183 | std::shared_ptr<Array> out; |
| 184 | ABORT_NOT_OK(builder.Finish(&out)); |
| 185 | } |
| 186 | |
| 187 | state.SetBytesProcessed(state.iterations() * kBytesProcessed); |
| 188 | state.SetItemsProcessed(state.iterations() * kItemsProcessed); |
| 189 | } |
| 190 | |
| 191 | static void BuildChunkedBinaryArray( |
| 192 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected