| 138 | } |
| 139 | |
| 140 | static void ParseJSONBlockWithSchema( |
| 141 | benchmark::State& state) { // NOLINT non-const reference |
| 142 | const int32_t num_rows = 5000; |
| 143 | auto options = ParseOptions::Defaults(); |
| 144 | options.unexpected_field_behavior = UnexpectedFieldBehavior::Error; |
| 145 | options.explicit_schema = schema(TestFields()); |
| 146 | |
| 147 | auto json = GenerateTestData(options.explicit_schema, num_rows); |
| 148 | BenchmarkJSONParsing(state, std::make_shared<Buffer>(json), options); |
| 149 | } |
| 150 | |
| 151 | static void BenchmarkJSONReading(benchmark::State& state, // NOLINT non-const reference |
| 152 | const std::string& json, ReadOptions read_options, |
nothing calls this directly
no test coverage detected