| 159 | } |
| 160 | |
| 161 | static void ChunkJSONLineDelimited( |
| 162 | benchmark::State& state) { // NOLINT non-const reference |
| 163 | const int32_t num_rows = 5000; |
| 164 | |
| 165 | auto options = ParseOptions::Defaults(); |
| 166 | options.newlines_in_values = false; |
| 167 | options.explicit_schema = schema(TestFields()); |
| 168 | |
| 169 | auto json = GenerateTestData(options.explicit_schema, num_rows); |
| 170 | BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options); |
| 171 | state.SetBytesProcessed(0); |
| 172 | } |
| 173 | |
| 174 | static void BenchmarkJSONParsing(benchmark::State& state, // NOLINT non-const reference |
| 175 | const std::shared_ptr<Buffer>& json, |
nothing calls this directly
no test coverage detected