| 681 | BENCHMARK(BM_ReadListColumn)->Apply(NestedReadArguments); |
| 682 | |
| 683 | static void BM_ReadListOfStructColumn(::benchmark::State& state) { |
| 684 | constexpr int64_t kNumValues = BENCHMARK_SIZE / 10; |
| 685 | const double null_probability = static_cast<double>(state.range(0)) / 100.0; |
| 686 | const bool nullable = (null_probability != 0.0); |
| 687 | |
| 688 | ARROW_CHECK_GE(null_probability, 0.0); |
| 689 | |
| 690 | ::arrow::random::RandomArrayGenerator rng(42); |
| 691 | |
| 692 | auto values = MakeStructArray(&rng, kNumValues, null_probability); |
| 693 | const int64_t kBytesPerValue = sizeof(int32_t) + sizeof(int64_t); |
| 694 | |
| 695 | auto array = rng.List(*values, kNumValues / 10, null_probability); |
| 696 | |
| 697 | BenchmarkReadArray(state, array, nullable, kNumValues, kBytesPerValue * kNumValues); |
| 698 | } |
| 699 | |
| 700 | BENCHMARK(BM_ReadListOfStructColumn)->Apply(NestedReadArguments); |
| 701 |
nothing calls this directly
no test coverage detected