| 1581 | }; |
| 1582 | |
| 1583 | void BenchmarkDecodeArrowBoolean::DecodeArrowWithNullDenseBenchmark( |
| 1584 | benchmark::State& state) { |
| 1585 | // Change null_probability |
| 1586 | null_probability_ = static_cast<double>(state.range(1)) / 10000; |
| 1587 | InitDataInputs(); |
| 1588 | this->DoEncodeArrow(); |
| 1589 | int num_values_with_nulls = this->num_values_; |
| 1590 | |
| 1591 | for (auto _ : state) { |
| 1592 | auto decoder = this->InitializeDecoder(); |
| 1593 | auto acc = this->CreateAccumulator(); |
| 1594 | decoder->DecodeArrow( |
| 1595 | num_values_with_nulls, |
| 1596 | /*null_count=*/static_cast<int>(this->input_array_->null_count()), |
| 1597 | this->valid_bits_, 0, &acc); |
| 1598 | } |
| 1599 | state.SetBytesProcessed(state.iterations() * static_cast<int64_t>(total_size_)); |
| 1600 | state.SetItemsProcessed(state.iterations() * state.range(0)); |
| 1601 | } |
| 1602 | |
| 1603 | class BM_DecodeArrowBooleanPlain : public BenchmarkDecodeArrowBoolean { |
| 1604 | public: |
nothing calls this directly
no test coverage detected