Skip to content
Myr

Formatting

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

authored by sharkdp · committed by sharkdp · parent 0047938 · Browse files · 1 file+12 added−7 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+12 added−7 removed

  • other:+12 added−7 removed

1 file+12 added−7 removed

modified:src/hyperfine/benchmark.rs+12 added-7 removed
110 unmodified lines
111 println!(112 "{}{}: {}",113 White.bold().paint("Benchmark #"),114 White.bold().paint((num + 1).to_string()),115 Cyan.paint(cmd)115 cmd116 );117 println!();118119 let mut execution_times: Vec<Second> = vec![];
63 unmodified lines
183 let stddev_str = format_duration(t_stddev, unit_mean);184 let min_str = format_duration(t_min, unit_mean);185 let max_str = format_duration(t_max, unit_mean);186187 let mean_stddev = format!("{} ± {}", Green.bold().paint(mean_str), Green.paint(stddev_str));187 println!(189 " Time: {:<40} mean ± stddev",190 mean_stddev188 " Time ({} ± {}): {} ± {}",189 Green.bold().paint("mean"),190 Green.paint("σ"),191 Green.bold().paint(mean_str),192 Green.paint(stddev_str)193 );194 println!();195193 let min_max = format!("{} … {}", Purple.paint(min_str), Purple.paint(max_str));196 println!(195 " Range: {:<38} min … max",196 min_max197 " Range ({} … {}): {} … {}",198 Cyan.paint("min"),199 Purple.paint("max"),200 Cyan.paint(min_str),201 Purple.paint(max_str)202 );203204 // Warnings205 let mut warnings = vec![];
22 unmodified lines