MCPcopy Create free account
hub / github.com/apache/arrow / ChunkJSONPrettyPrintedMultipleBlocks

Function ChunkJSONPrettyPrintedMultipleBlocks

cpp/src/arrow/json/parser_benchmark.cc:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static 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
161static void ChunkJSONLineDelimited(
162 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 6

TestFieldsFunction · 0.85
GenerateTestDataFunction · 0.70
DefaultsFunction · 0.50
schemaFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected