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

Function BuildCSVData

cpp/src/arrow/csv/parser_benchmark.cc:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67static constexpr int32_t kNumRows = 10000;
68
69static std::string BuildCSVData(const Example& example) {
70 std::stringstream ss;
71 for (int32_t i = 0; i < kNumRows; i += example.num_rows) {
72 ss << example.csv_rows;
73 }
74 return ss.str();
75}
76
77static void BenchmarkCSVChunking(benchmark::State& state, // NOLINT non-const reference
78 const std::string& csv, ParseOptions options) {

Callers 5

BenchmarkCSVChunkingFunction · 0.85
ChunkCSVQuotedBlockFunction · 0.85
ChunkCSVEscapedBlockFunction · 0.85
ChunkCSVNoNewlinesBlockFunction · 0.85
BenchmarkCSVParsingFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected