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

Function ChunkJSONPrettyPrinted

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

Source from the content-addressed store, hash-verified

134}
135
136static void ChunkJSONPrettyPrinted(
137 benchmark::State& state) { // NOLINT non-const reference
138 const int32_t num_rows = 5000;
139
140 auto options = ParseOptions::Defaults();
141 options.newlines_in_values = true;
142 options.explicit_schema = schema(TestFields());
143
144 auto json = GenerateTestData(options.explicit_schema, num_rows, /*pretty=*/true);
145 BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options);
146}
147
148static void ChunkJSONPrettyPrintedMultipleBlocks(
149 benchmark::State& state) { // NOLINT non-const reference

Callers

nothing calls this directly

Calls 5

TestFieldsFunction · 0.85
BenchmarkJSONChunkingFunction · 0.85
GenerateTestDataFunction · 0.70
DefaultsFunction · 0.50
schemaFunction · 0.50

Tested by

no test coverage detected