Skip to main content

parse_bencher_line

Function parse_bencher_line 

Source
pub fn parse_bencher_line(
    line: &str,
) -> Result<Option<NamedMetric>, ParseBenchesError>
Expand description

Parses a single line of Criterion bencher output.

Matches patterns of the shape: test log/append/100rec_1024B ... bench: 95,979 ns/iter (+/- 1,377,729)

ยงErrors

Returns ParseBenchesError::InvalidNumber if matched numeric fields cannot be parsed into floats.