Skip to main content

parse_rate_spec

Function parse_rate_spec 

Source
pub fn parse_rate_spec(s: &str) -> Result<f64, String>
Expand description

Parse a rate: spec string into an ops-per-second f64. See module docs for the accepted formats.

Errors with a descriptive message naming the malformed input — the workload author needs enough context to fix the typo.