MCPcopy Create free account
hub / github.com/apache/arrow / SetBitsTo

Function SetBitsTo

cpp/src/arrow/util/bit_util_benchmark.cc:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static 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
442static void CountSetBits(benchmark::State& state) {
443 int64_t nbytes = state.range(0);

Callers

nothing calls this directly

Calls 2

CreateRandomBufferFunction · 0.70
mutable_dataMethod · 0.45

Tested by

no test coverage detected