| 21 | } |
| 22 | |
| 23 | void BenchmarkRunner::registerBenchmarks(const std::string& path) { |
| 24 | if (std::filesystem::is_regular_file(path)) { |
| 25 | registerBenchmark(path); |
| 26 | } else if (std::filesystem::is_directory(path)) { |
| 27 | for (auto& f : std::filesystem::directory_iterator(path)) { |
| 28 | registerBenchmark(f.path().string()); |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void BenchmarkRunner::runAllBenchmarks() { |
| 34 | for (auto& benchmark : benchmarks) { |