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

Function TestBoostTime

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

Source from the content-addressed store, hash-verified

165}
166
167void TestBoostTime(int batch_size, void* d) {
168 TestData* data = reinterpret_cast<TestData*>(d);
169 for (int i = 0; i < batch_size; ++i) {
170 int n = data->data.size();
171 for (int j = 0; j < n; ++j) {
172 string s(data->data[j].Ptr(), data->data[j].Len());
173 data->result[j].set_time(duration_from_string(s));
174 }
175 }
176}
177
178void TestImpalaSimpleDateFormatTimestamp(int batch_size, void* d) {
179 TestData* data = reinterpret_cast<TestData*>(d);

Callers

nothing calls this directly

Calls 4

set_timeMethod · 0.80
sizeMethod · 0.45
PtrMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected