| 704 | BENCHMARK(BM_ReadStructOfListColumn)->Apply(NestedReadArguments); |
| 705 | |
| 706 | static void BM_ReadListColumn(::benchmark::State& state) { |
| 707 | constexpr int64_t kNumValues = BENCHMARK_SIZE / 10; |
| 708 | const double null_probability = static_cast<double>(state.range(0)) / 100.0; |
| 709 | const bool nullable = (null_probability != 0.0); |
| 710 | |
| 711 | ARROW_CHECK_GE(null_probability, 0.0); |
| 712 | |
| 713 | ::arrow::random::RandomArrayGenerator rng(42); |
| 714 | |
| 715 | auto values = rng.Int64(kNumValues, /*min=*/-5, /*max=*/5, null_probability); |
| 716 | const int64_t kBytesPerValue = sizeof(int64_t); |
| 717 | |
| 718 | auto array = rng.List(*values, kNumValues / 10, null_probability); |
| 719 | |
| 720 | BenchmarkReadArray(state, array, nullable, kNumValues, kBytesPerValue * kNumValues); |
| 721 | } |
| 722 | |
| 723 | BENCHMARK(BM_ReadListColumn)->Apply(NestedReadArguments); |
| 724 |
nothing calls this directly
no test coverage detected