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

Function MakeFloatStrings

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

Source from the content-addressed store, hash-verified

77}
78
79static std::vector<std::string> MakeFloatStrings(int32_t num_items) {
80 std::vector<std::string> base_strings = {"0.0", "5", "-12.3",
81 "98765430000", "3456.789", "0.0012345",
82 "2.34567e8", "-5.67e-8"};
83 std::vector<std::string> strings;
84 for (int32_t i = 0; i < num_items; ++i) {
85 strings.push_back(base_strings[i % base_strings.size()]);
86 }
87 return strings;
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",

Callers 1

FloatParsingFunction · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected