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

Function BM_WritePrimitiveColumn

cpp/src/parquet/arrow/size_stats_benchmark.cc:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120template <SizeStatisticsLevel level, typename ArrowType, bool enable_page_index>
121void BM_WritePrimitiveColumn(::benchmark::State& state) {
122 ::arrow::random::RandomArrayGenerator generator(/*seed=*/42);
123 auto type = std::make_shared<ArrowType>();
124 auto array = generator.ArrayOf(type, kBenchmarkSize, kNullProbability);
125 auto table = ::arrow::Table::Make(
126 ::arrow::schema({::arrow::field("column", type, kNullProbability > 0)}), {array});
127 WriteColumn(state, table, level, enable_page_index);
128}
129
130template <SizeStatisticsLevel level, typename ArrowType, bool enable_page_index>
131void BM_WriteListColumn(::benchmark::State& state) {

Callers

nothing calls this directly

Calls 5

WriteColumnFunction · 0.85
fieldFunction · 0.70
MakeFunction · 0.50
schemaFunction · 0.50
ArrayOfMethod · 0.45

Tested by

no test coverage detected