pub fn parse_benchmark_dir(
results_dir: &Path,
) -> Result<BTreeMap<String, BenchmarkMetric>, ParseBenchesError>Expand description
Scans the given directory for all *.txt files and parses their benchmark metrics.
ยงErrors
Returns an error if:
- The directory does not exist (
ParseBenchesError::DirectoryNotFound). - No
*.txtfiles are found (ParseBenchesError::NoTxtFiles). - No metrics were parsed from any found files (
ParseBenchesError::NoMetricsParsed). - Duplicate benchmark metrics are detected across files.