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

Function BenchmarkReadArray

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

Source from the content-addressed store, hash-verified

320}
321
322static void BenchmarkReadArray(::benchmark::State& state,
323 const std::shared_ptr<Array>& array, bool nullable,
324 std::shared_ptr<WriterProperties> properties,
325 int64_t num_values = -1, int64_t total_bytes = -1) {
326 auto schema = ::arrow::schema({field("s", array->type(), nullable)});
327 auto table = Table::Make(schema, {array}, array->length());
328
329 EXIT_NOT_OK(table->Validate());
330
331 BenchmarkReadTable(state, *table, num_values, total_bytes);
332}
333
334static void BenchmarkReadArray(::benchmark::State& state,
335 const std::shared_ptr<Array>& array, bool nullable,

Callers 6

BM_ReadStructColumnFunction · 0.85
BM_ReadListColumnFunction · 0.85
BM_ReadListOfListColumnFunction · 0.85

Calls 7

BenchmarkReadTableFunction · 0.85
fieldFunction · 0.70
schemaFunction · 0.50
MakeFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45
ValidateMethod · 0.45

Tested by

no test coverage detected