| 178 | } |
| 179 | |
| 180 | int 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 | } |
nothing calls this directly
no test coverage detected