| 78 | } |
| 79 | |
| 80 | static void BuildAdaptiveIntNoNulls( |
| 81 | benchmark::State& state) { // NOLINT non-const reference |
| 82 | for (auto _ : state) { |
| 83 | AdaptiveIntBuilder builder(memory_tracker.memory_pool()); |
| 84 | |
| 85 | for (int i = 0; i < kRounds; i++) { |
| 86 | ABORT_NOT_OK(builder.AppendValues(kData.data(), kData.size(), nullptr)); |
| 87 | } |
| 88 | |
| 89 | std::shared_ptr<Array> out; |
| 90 | ABORT_NOT_OK(builder.Finish(&out)); |
| 91 | } |
| 92 | |
| 93 | state.SetBytesProcessed(state.iterations() * kBytesProcessed); |
| 94 | state.SetItemsProcessed(state.iterations() * kItemsProcessed); |
| 95 | } |
| 96 | |
| 97 | static void BuildAdaptiveIntNoNullsScalarAppend( |
| 98 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected