| 62 | static std::string_view kBinaryView(kBinaryString); |
| 63 | |
| 64 | static void BuildIntArrayNoNulls(benchmark::State& state) { // NOLINT non-const reference |
| 65 | for (auto _ : state) { |
| 66 | Int64Builder builder(memory_tracker.memory_pool()); |
| 67 | |
| 68 | for (int i = 0; i < kRounds; i++) { |
| 69 | ABORT_NOT_OK(builder.AppendValues(kData.data(), kData.size(), nullptr)); |
| 70 | } |
| 71 | |
| 72 | std::shared_ptr<Array> out; |
| 73 | ABORT_NOT_OK(builder.Finish(&out)); |
| 74 | } |
| 75 | |
| 76 | state.SetBytesProcessed(state.iterations() * kBytesProcessed); |
| 77 | state.SetItemsProcessed(state.iterations() * kItemsProcessed); |
| 78 | } |
| 79 | |
| 80 | static void BuildAdaptiveIntNoNulls( |
| 81 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected