| 112 | }; |
| 113 | |
| 114 | void WriteMetadataSetArgs(benchmark::internal::Benchmark* bench) { |
| 115 | bench->ArgNames({"num_columns", "num_row_groups"}); |
| 116 | |
| 117 | for (int num_columns : {1, 10, 100}) { |
| 118 | for (int num_row_groups : {1, 100, 1000}) { |
| 119 | bench->Args({num_columns, num_row_groups}); |
| 120 | } |
| 121 | } |
| 122 | /* For larger num_columns, restrict num_row_groups to small values |
| 123 | * to avoid blowing up benchmark execution time. |
| 124 | */ |
| 125 | for (int num_row_groups : {1, 100}) { |
| 126 | bench->Args({/*num_columns=*/1000, num_row_groups}); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void ReadMetadataSetArgs(benchmark::internal::Benchmark* bench) { |
| 131 | WriteMetadataSetArgs(bench); |
no outgoing calls
no test coverage detected