| 187 | } |
| 188 | |
| 189 | static void ParseJSONBlockWithSchema( |
| 190 | benchmark::State& state) { // NOLINT non-const reference |
| 191 | const int32_t num_rows = 5000; |
| 192 | auto options = ParseOptions::Defaults(); |
| 193 | options.unexpected_field_behavior = UnexpectedFieldBehavior::Error; |
| 194 | options.explicit_schema = schema(TestFields()); |
| 195 | |
| 196 | auto json = GenerateTestData(options.explicit_schema, num_rows); |
| 197 | BenchmarkJSONParsing(state, std::make_shared<Buffer>(json), options); |
| 198 | } |
| 199 | |
| 200 | static void BenchmarkJSONReading(benchmark::State& state, // NOLINT non-const reference |
| 201 | const std::string& json, ReadOptions read_options, |
nothing calls this directly
no test coverage detected