| 110 | } |
| 111 | |
| 112 | static void ChunkJSONLineDelimited( |
| 113 | benchmark::State& state) { // NOLINT non-const reference |
| 114 | const int32_t num_rows = 5000; |
| 115 | |
| 116 | auto options = ParseOptions::Defaults(); |
| 117 | options.newlines_in_values = false; |
| 118 | options.explicit_schema = schema(TestFields()); |
| 119 | |
| 120 | auto json = GenerateTestData(options.explicit_schema, num_rows); |
| 121 | BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options); |
| 122 | state.SetBytesProcessed(0); |
| 123 | } |
| 124 | |
| 125 | static void BenchmarkJSONParsing(benchmark::State& state, // NOLINT non-const reference |
| 126 | const std::shared_ptr<Buffer>& json, |
nothing calls this directly
no test coverage detected