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

Function BenchmarkBitmapVisitUInt64And

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

Source from the content-addressed store, hash-verified

179}
180
181static void BenchmarkBitmapVisitUInt64And(benchmark::State& state) {
182 BenchmarkAndImpl(state, [](const internal::Bitmap(&bitmaps)[2], internal::Bitmap* out) {
183 int64_t i = 0;
184 internal::Bitmap::VisitWords(bitmaps, [&](std::array<uint64_t, 2> uint64s) {
185 reinterpret_cast<uint64_t*>(out->mutable_data())[i++] = uint64s[0] & uint64s[1];
186 });
187 });
188}
189
190template <typename BitmapReaderType>
191static void BenchmarkBitmapReader(benchmark::State& state, int64_t nbytes) {

Callers

nothing calls this directly

Calls 3

BenchmarkAndImplFunction · 0.85
VisitWordsFunction · 0.85
mutable_dataMethod · 0.45

Tested by

no test coverage detected