From 0606c1140389d8e036087bb24e03bc43d727ffd0 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 10 Oct 2023 14:40:36 +0100 Subject: fix(bench): use total time when measuring wavg (#20862) --- cli/tools/bench/reporters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools') diff --git a/cli/tools/bench/reporters.rs b/cli/tools/bench/reporters.rs index 68788bc96..35b4a229c 100644 --- a/cli/tools/bench/reporters.rs +++ b/cli/tools/bench/reporters.rs @@ -237,7 +237,7 @@ impl BenchReporter for ConsoleReporter { ); if !stats.high_precision && stats.used_explicit_timers { - println!("{}", colors::yellow(format!("Warning: start() and end() calls in \"{}\" are ignored because it averages less\nthan 0.01s per iteration. Remove them for better results.", &desc.name))); + println!("{}", colors::yellow(format!("Warning: start() and end() calls in \"{}\" are ignored because it averages less\nthan 10µs per iteration. Remove them for better results.", &desc.name))); } self.group_measurements.push((desc, stats.clone())); -- cgit v1.2.3