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

Function BenchmarkBitmapVisitBitsetAnd

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

Source from the content-addressed store, hash-verified

162}
163
164static void BenchmarkBitmapVisitBitsetAnd(benchmark::State& state) {
165 BenchmarkAndImpl(state, [](const internal::Bitmap(&bitmaps)[2], internal::Bitmap* out) {
166 int64_t i = 0;
167 internal::Bitmap::VisitBits(
168 bitmaps, [&](std::bitset<2> bits) { out->SetBitTo(i++, bits[0] && bits[1]); });
169 });
170}
171
172static void BenchmarkBitmapVisitUInt8And(benchmark::State& state) {
173 BenchmarkAndImpl(state, [](const internal::Bitmap(&bitmaps)[2], internal::Bitmap* out) {

Callers

nothing calls this directly

Calls 2

BenchmarkAndImplFunction · 0.85
VisitBitsFunction · 0.70

Tested by

no test coverage detected