From 156933489bebdd1d3e5193cc9ec116710b911475 Mon Sep 17 00:00:00 2001 From: "Sergey \"Shnatsel\" Davidoff" Date: Sat, 15 Sep 2018 21:35:38 +0300 Subject: [PATCH] Better-sounding final performance report --- src/hyperfine/internal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hyperfine/internal.rs b/src/hyperfine/internal.rs index ea7b782..e3d0789 100644 --- a/src/hyperfine/internal.rs +++ b/src/hyperfine/internal.rs @@ -73,8 +73,8 @@ pub fn write_benchmark_comparison(results: &Vec) { // Covariance asssumed to be 0, i.e. variables are assumed to be independent let ratio_stddev = ratio * ( (item.stddev/item.mean).powi(2) + (fastest_item.stddev/fastest_item.mean).powi(2) ).sqrt(); println!( - "{} ± {} faster than '{}'", - format!("{:8.2}x", ratio) + "{} ± {} times faster than '{}'", + format!("{:8.2}", ratio) .bold() .green(), format!("{:.2}", ratio_stddev).green(),