| 430 | } |
| 431 | |
| 432 | static void SetBitsTo(benchmark::State& state) { |
| 433 | int64_t nbytes = state.range(0); |
| 434 | std::shared_ptr<Buffer> buffer = CreateRandomBuffer(nbytes); |
| 435 | |
| 436 | for (auto _ : state) { |
| 437 | ::arrow::bit_util::SetBitsTo(buffer->mutable_data(), /*offset=*/0, nbytes * 8, true); |
| 438 | } |
| 439 | state.SetBytesProcessed(state.iterations() * nbytes); |
| 440 | } |
| 441 | |
| 442 | static void CountSetBits(benchmark::State& state) { |
| 443 | int64_t nbytes = state.range(0); |
nothing calls this directly
no test coverage detected