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

Function main

be/src/benchmarks/string-benchmark.cc:180–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180int main(int argc, char **argv) {
181 CpuInfo::Init();
182 cout << Benchmark::GetMachineInfo() << endl;
183
184 TestData data;
185 InitTestData(&data, 10000, 100);
186
187 Benchmark suite("String Test");
188 suite.AddBenchmark("Normal Sequential", TestNormalStringsSequential, &data);
189 suite.AddBenchmark("Compact Sequential", TestCompactStringsSequential, &data);
190 suite.AddBenchmark("Normal Random", TestNormalStringsRandom, &data);
191 suite.AddBenchmark("Compact Random", TestCompactStringsRandom, &data);
192 cout << suite.Measure();
193
194 if (data.hash_normal != data.hash_compact) {
195 cout << "Uh oh - this is broken." << endl;
196 return 1;
197 }
198
199 return 0;
200}

Callers

nothing calls this directly

Calls 3

AddBenchmarkMethod · 0.80
InitTestDataFunction · 0.70
MeasureMethod · 0.45

Tested by

no test coverage detected