Skip to main content

parse_bencher_file

Function parse_bencher_file 

Source
pub fn parse_bencher_file(
    path: &Path,
    benchmarks: &mut BTreeMap<String, BenchmarkMetric>,
) -> Result<(), ParseBenchesError>
Expand description

Parses all benchmark metrics from a .txt file into the target map.

ยงErrors

Returns an error if the file cannot be read, numeric parsing fails, or a duplicate benchmark name is encountered.