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

Method DecodeArrowWithNullDenseBenchmark

cpp/src/parquet/encoding_benchmark.cc:1583–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1581};
1582
1583void 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
1603class BM_DecodeArrowBooleanPlain : public BenchmarkDecodeArrowBoolean {
1604 public:

Callers

nothing calls this directly

Calls 5

CreateAccumulatorMethod · 0.95
DoEncodeArrowMethod · 0.45
InitializeDecoderMethod · 0.45
DecodeArrowMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected