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

Function FieldPathGetFromWideChunkedArray

cpp/src/arrow/type_benchmark.cc:521–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521static void FieldPathGetFromWideChunkedArray(
522 benchmark::State& state) { // NOLINT non-const reference
523 constexpr int kNumColumns = 10000;
524 // Percentage representing the size of each chunk relative to the total length (smaller
525 // proportion means more chunks)
526 const double chunk_proportion = state.range(0) / 100.0;
527 auto chunked_array = ToChunked(GenerateTestArray(kNumColumns), chunk_proportion);
528 BenchmarkFieldPathGet(state, *chunked_array, kNumColumns, chunked_array->num_chunks());
529}
530
531static void FieldPathGetFromWideTable(
532 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 4

ToChunkedFunction · 0.85
GenerateTestArrayFunction · 0.85
BenchmarkFieldPathGetFunction · 0.85
num_chunksMethod · 0.45

Tested by

no test coverage detected