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

Function ChunkJSONLineDelimited

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

Source from the content-addressed store, hash-verified

110}
111
112static void ChunkJSONLineDelimited(
113 benchmark::State& state) { // NOLINT non-const reference
114 const int32_t num_rows = 5000;
115
116 auto options = ParseOptions::Defaults();
117 options.newlines_in_values = false;
118 options.explicit_schema = schema(TestFields());
119
120 auto json = GenerateTestData(options.explicit_schema, num_rows);
121 BenchmarkJSONChunking(state, std::make_shared<Buffer>(json), options);
122 state.SetBytesProcessed(0);
123}
124
125static void BenchmarkJSONParsing(benchmark::State& state, // NOLINT non-const reference
126 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