MCPcopy Create free account
hub / github.com/apache/impala / TestBoostDate

Function TestBoostDate

be/src/benchmarks/parse-timestamp-benchmark.cc:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void TestBoostDate(int batch_size, void* d) {
157 TestData* data = reinterpret_cast<TestData*>(d);
158 for (int i = 0; i < batch_size; ++i) {
159 int n = data->data.size();
160 for (int j = 0; j < n; ++j) {
161 string s(data->data[j].Ptr(), data->data[j].Len());
162 data->result[j].set_date(gregorian::from_string(s));
163 }
164 }
165}
166
167void TestBoostTime(int batch_size, void* d) {
168 TestData* data = reinterpret_cast<TestData*>(d);

Callers

nothing calls this directly

Calls 4

set_dateMethod · 0.80
sizeMethod · 0.45
PtrMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected