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

Function ChunkJSONLineDelimited

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

Source from the content-addressed store, hash-verified

159}
160
161static void ChunkJSONLineDelimited(
162 benchmark::State& state) { // NOLINT non-const reference
163 const int32_t num_rows = 5000;
164
165 auto options = ParseOptions::Defaults();
166 options.newlines_in_values = false;
167 options.explicit_schema = schema(TestFields());
168
169 auto json = GenerateTestData(options.explicit_schema, num_rows);
170 BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options);
171 state.SetBytesProcessed(0);
172}
173
174static void BenchmarkJSONParsing(benchmark::State& state, // NOLINT non-const reference
175 const std::shared_ptr<Buffer>& json,

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