| 723 | BENCHMARK(BM_ReadListColumn)->Apply(NestedReadArguments); |
| 724 | |
| 725 | static void BM_ReadListOfStructColumn(::benchmark::State& state) { |
| 726 | constexpr int64_t kNumValues = BENCHMARK_SIZE / 10; |
| 727 | const double null_probability = static_cast<double>(state.range(0)) / 100.0; |
| 728 | const bool nullable = (null_probability != 0.0); |
| 729 | |
| 730 | ARROW_CHECK_GE(null_probability, 0.0); |
| 731 | |
| 732 | ::arrow::random::RandomArrayGenerator rng(42); |
| 733 | |
| 734 | auto values = MakeStructArray(&rng, kNumValues, null_probability); |
| 735 | const int64_t kBytesPerValue = sizeof(int32_t) + sizeof(int64_t); |
| 736 | |
| 737 | auto array = rng.List(*values, kNumValues / 10, null_probability); |
| 738 | |
| 739 | BenchmarkReadArray(state, array, nullable, kNumValues, kBytesPerValue * kNumValues); |
| 740 | } |
| 741 | |
| 742 | BENCHMARK(BM_ReadListOfStructColumn)->Apply(NestedReadArguments); |
| 743 |
nothing calls this directly
no test coverage detected