pub fn run_benchmark(duration: Duration) -> Result<BenchmarkOutcome>Expand description
Run the stability benchmark for the specified duration.
This is the main entry point for benchmark execution. It collects GPU
metrics every SAMPLE_INTERVAL_SECS seconds for the given duration.
For a valid benchmark, duration must be ≥ MIN_BENCHMARK_DURATION_SECS (180s).
Shorter durations will produce an incomplete result.
§Arguments
duration- How long to run the benchmark (minimum 180s for validity)
§Returns
A BenchmarkOutcome containing all samples and whether the benchmark is complete.