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

Function FieldPathGetFromWideChunkedArray

cpp/src/arrow/type_benchmark.cc:535–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535static void FieldPathGetFromWideChunkedArray(
536 benchmark::State& state) { // NOLINT non-const reference
537 constexpr int kNumColumns = 10000;
538 // Percentage representing the size of each chunk relative to the total length (smaller
539 // proportion means more chunks)
540 const double chunk_proportion = state.range(0) / 100.0;
541 auto chunked_array = ToChunked(GenerateTestArray(kNumColumns), chunk_proportion);
542 BenchmarkFieldPathGet(state, *chunked_array, kNumColumns, chunked_array->num_chunks());
543}
544
545static void FieldPathGetFromWideTable(
546 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