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

Function ChunkJSONPrettyPrinted

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

Source from the content-addressed store, hash-verified

98}
99
100static void ChunkJSONPrettyPrinted(
101 benchmark::State& state) { // NOLINT non-const reference
102 const int32_t num_rows = 5000;
103
104 auto options = ParseOptions::Defaults();
105 options.newlines_in_values = true;
106 options.explicit_schema = schema(TestFields());
107
108 auto json = GenerateTestData(options.explicit_schema, num_rows, /*pretty=*/true);
109 BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options);
110}
111
112static void ChunkJSONLineDelimited(
113 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