| 166 | } |
| 167 | |
| 168 | static void BenchmarkReadJSONBlockWithSchema( |
| 169 | benchmark::State& state, // NOLINT non-const reference |
| 170 | bool use_threads) { |
| 171 | const int32_t num_rows = 500000; |
| 172 | auto read_options = ReadOptions::Defaults(); |
| 173 | read_options.use_threads = use_threads; |
| 174 | |
| 175 | auto parse_options = ParseOptions::Defaults(); |
| 176 | parse_options.unexpected_field_behavior = UnexpectedFieldBehavior::Error; |
| 177 | parse_options.explicit_schema = schema(TestFields()); |
| 178 | |
| 179 | auto json = GenerateTestData(parse_options.explicit_schema, num_rows); |
| 180 | BenchmarkJSONReading(state, json, read_options, parse_options); |
| 181 | } |
| 182 | |
| 183 | static void ReadJSONBlockWithSchemaSingleThread( |
| 184 | benchmark::State& state) { // NOLINT non-const reference |
no test coverage detected