Skip to content
Myr

Show (dimmed) # of runs along with range.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #78

authored by tcmal · committed by sharkdp · parent 1dcefd9 · Browse files · 1 file+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:src/hyperfine/benchmark.rs+5 added-2 removed
287 unmodified lines
288 }289 progress_bar.finish_and_clear();290291 // Compute statistical quantities292 let t_num = times_real.len();293 let t_mean = mean(&times_real);294 let t_stddev = standard_deviation(&times_real, Some(t_mean));295 let t_min = min(&times_real);296 let t_max = max(&times_real);
5 unmodified lines
302 let (mean_str, unit_mean) = format_duration_unit(t_mean, options.time_unit);303 let stddev_str = format_duration(t_stddev, Some(unit_mean));304 let min_str = format_duration(t_min, Some(unit_mean));305 let max_str = format_duration(t_max, Some(unit_mean));306 let num_str = format!("{} runs", t_num);307308 let (user_str, user_unit) = format_duration_unit(user_mean, None);309 let system_str = format_duration(system_mean, Some(user_unit));310
7 unmodified lines
318 system_str.blue()319 );320321 println!(320 " Range ({} … {}): {:>8} … {:>8}",322 " Range ({} … {}): {:>8} … {:>8} {}",323 "min".cyan(),324 "max".purple(),325 min_str.cyan(),324 max_str.purple()326 max_str.purple(),327 num_str.dimmed()328 );329330 // Warnings331 let mut warnings = vec![];
40 unmodified lines