Skip to main content

bandwidth_utilization

Function bandwidth_utilization 

Source
pub fn bandwidth_utilization(measured_gbps: f64, peak_gbps: f64) -> f64
Expand description

Returns the bandwidth utilization ratio (0.0–1.0).

§Parameters

  • measured_gbps — measured bandwidth in GB/s.
  • peak_gbps — theoretical peak bandwidth in GB/s.

§Returns

The ratio measured / peak, clamped to [0.0, 1.0]. Returns 0.0 if peak_gbps is zero or negative.