pub fn score_resources(
duration: Duration,
bounds: &[ResourceBound],
) -> Vec<AchievedThroughput>Expand description
Scores an actual run against a set of ResourceBounds, one resource at
a time.
duration is the run’s actual, measured duration, shared by every bound:
they all describe the same execution, so the same wall time buys each
resource a different achieved rate against its own peak. Results come
back in bounds order. A zero duration yields NaN achieved rates rather
than dividing by zero.