| 150 | } |
| 151 | |
| 152 | void RunBenchmarks(const std::string& benchmarkName) |
| 153 | { |
| 154 | if (benchmarkName == "all") |
| 155 | { |
| 156 | auto names = getFunctionRegistry().getFunctionNames(); |
| 157 | for (const auto& name : names) |
| 158 | { |
| 159 | getFunctionRegistry().runFunction(name); |
| 160 | } |
| 161 | } |
| 162 | else |
| 163 | { |
| 164 | if (!getFunctionRegistry().runFunction(benchmarkName)) |
| 165 | { |
| 166 | PrintOptions(); |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | int main(int argc, char** argv) |
| 172 | { |
no test coverage detected