| 146 | } |
| 147 | |
| 148 | static void ChunkJSONPrettyPrintedMultipleBlocks( |
| 149 | benchmark::State& state) { // NOLINT non-const reference |
| 150 | const int32_t num_rows = 5000; |
| 151 | |
| 152 | auto options = ParseOptions::Defaults(); |
| 153 | options.newlines_in_values = true; |
| 154 | options.explicit_schema = schema(TestFields()); |
| 155 | |
| 156 | auto json = GenerateTestData(options.explicit_schema, num_rows, /*pretty=*/true); |
| 157 | BenchmarkJSONChunkingMultipleBlocks(state, std::make_shared<Buffer>(json), options, |
| 158 | /*block_size=*/json.length() / 8); |
| 159 | } |
| 160 | |
| 161 | static void ChunkJSONLineDelimited( |
| 162 | benchmark::State& state) { // NOLINT non-const reference |
nothing calls this directly
no test coverage detected