| 215 | } |
| 216 | |
| 217 | static void BenchmarkReadJSONBlockWithSchema( |
| 218 | benchmark::State& state, // NOLINT non-const reference |
| 219 | bool use_threads) { |
| 220 | const int32_t num_rows = 500000; |
| 221 | auto read_options = ReadOptions::Defaults(); |
| 222 | read_options.use_threads = use_threads; |
| 223 | |
| 224 | auto parse_options = ParseOptions::Defaults(); |
| 225 | parse_options.unexpected_field_behavior = UnexpectedFieldBehavior::Error; |
| 226 | parse_options.explicit_schema = schema(TestFields()); |
| 227 | |
| 228 | auto json = GenerateTestData(parse_options.explicit_schema, num_rows); |
| 229 | BenchmarkJSONReading(state, json, read_options, parse_options); |
| 230 | } |
| 231 | |
| 232 | static void ReadJSONBlockWithSchemaSingleThread( |
| 233 | benchmark::State& state) { // NOLINT non-const reference |
no test coverage detected