pub fn compute_speedup(reports: &[GpuBenchReport]) -> SpeedupReportExpand description
Compute a speedup ratio from a pair of bench reports.
Expects reports[0] to be the CPU report and reports[1] (if present)
to be the wgpu report. Returns SpeedupReport { speedup: None } if
only one report is present (GPU unavailable).
ยงExample
use oxiphysics_gpu::gpu_bench::{GpuBenchHarness, compute_speedup};
let mut h = GpuBenchHarness::new();
let reports = h.cpu_vs_wgpu_sph(64);
let sr = compute_speedup(&reports);
assert!(sr.cpu_mean.as_secs_f64() > 0.0);