| 114 | } |
| 115 | |
| 116 | static void BuildBooleanArrayNoNulls( |
| 117 | benchmark::State& state) { // NOLINT non-const reference |
| 118 | |
| 119 | size_t n_bytes = kBytesProcessPerRound; |
| 120 | const uint8_t* data = reinterpret_cast<const uint8_t*>(kData.data()); |
| 121 | |
| 122 | for (auto _ : state) { |
| 123 | BooleanBuilder builder(memory_tracker.memory_pool()); |
| 124 | |
| 125 | for (int i = 0; i < kRounds; i++) { |
| 126 | ABORT_NOT_OK(builder.AppendValues(data, n_bytes)); |
| 127 | } |
| 128 | |
| 129 | std::shared_ptr<Array> out; |
| 130 | ABORT_NOT_OK(builder.Finish(&out)); |
| 131 | } |
| 132 | |
| 133 | state.SetBytesProcessed(state.iterations() * kBytesProcessed); |
| 134 | state.SetItemsProcessed(state.iterations() * kItemsProcessed); |
| 135 | } |
| 136 | |
| 137 | static void BuildBinaryArray(benchmark::State& state) { // NOLINT non-const reference |
| 138 | for (auto _ : state) { |
nothing calls this directly
no test coverage detected