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

Function BenchmarkReadNonDictColumn

cpp/src/parquet/arrow/reader_writer_benchmark.cc:425–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424template <typename ParquetType>
425static void BenchmarkReadNonDictColumn(::benchmark::State& state, bool nullable,
426 Encoding::type encoding) {
427 using c_type = typename ArrowType<ParquetType>::c_type;
428
429 const std::vector<c_type> values(BENCHMARK_SIZE, static_cast<c_type>(42));
430 std::shared_ptr<Table> table =
431 TableFromVector<ParquetType>(values, /*nullable=*/nullable, state.range(0));
432
433 auto properties =
434 WriterProperties::Builder().disable_dictionary()->encoding(encoding)->build();
435 BenchmarkReadTable(state, *table, properties, table->num_rows(),
436 BytesForItems<ParquetType>(table->num_rows()));
437}
438
439template <bool nullable, typename ParquetType>
440static void BM_ReadColumnPlain(::benchmark::State& state) {

Callers

nothing calls this directly

Calls 5

BenchmarkReadTableFunction · 0.85
BuilderFunction · 0.50
buildMethod · 0.45
encodingMethod · 0.45
num_rowsMethod · 0.45

Tested by

no test coverage detected