Skip to content
Myr

Better-sounding final performance report

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

authored by Sergey "Shnatsel" Davidoff · committed by David Peter · parent dc04fe8 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/hyperfine/internal.rs+2 added-2 removed
71 unmodified lines
72 // https://en.wikipedia.org/wiki/Propagation_of_uncertainty#Example_formulas73 // Covariance asssumed to be 0, i.e. variables are assumed to be independent74 let ratio_stddev = ratio * ( (item.stddev/item.mean).powi(2) + (fastest_item.stddev/fastest_item.mean).powi(2) ).sqrt();75 println!(76 "{} ± {} faster than '{}'",77 format!("{:8.2}x", ratio)76 "{} ± {} times faster than '{}'",77 format!("{:8.2}", ratio)78 .bold()79 .green(),80 format!("{:.2}", ratio_stddev).green(),81 &item.command.magenta()
12 unmodified lines