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

Function MakeTimestampStrings

cpp/src/arrow/util/value_parsing_benchmark.cc:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static std::vector<std::string> MakeTimestampStrings(int32_t num_items) {
91 std::vector<std::string> base_strings = {"2018-11-13 17:11:10", "2018-11-13 11:22:33",
92 "2016-02-29 11:22:33"};
93
94 std::vector<std::string> strings;
95 for (int32_t i = 0; i < num_items; ++i) {
96 strings.push_back(base_strings[i % base_strings.size()]);
97 }
98 return strings;
99}
100
101template <typename c_int, typename c_int_limits = std::numeric_limits<c_int>>
102static typename std::enable_if<c_int_limits::is_signed, std::vector<c_int>>::type

Callers 1

BenchTimestampParsingFunction · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected