From 926b8d07c8dc882abd31224a4086e709fba39076 Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 20 Apr 2023 12:32:11 +0200 Subject: [PATCH] Improve error message, mention --shell=none --- src/benchmark/scheduler.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/benchmark/scheduler.rs b/src/benchmark/scheduler.rs index e960494ae..c6ebf2845 100644 --- a/src/benchmark/scheduler.rs +++ b/src/benchmark/scheduler.rs @@ -87,8 +87,9 @@ impl<'a> Scheduler<'a> { "{}: The benchmark comparison could not be computed as some benchmark times are zero. \ This could be caused by background interference during the initial calibration phase \ of hyperfine, in combination with very fast commands (faster than a few milliseconds). \ - Try to re-run the benchmark on a quiet system. If it does not help, you command is \ - most likely too fast to be accurately benchmarked by hyperfine.", + Try to re-run the benchmark on a quiet system. If you did not do so already, try the \ + --shell=none/-N option. If it does not help either, you command is most likely too fast \ + to be accurately benchmarked by hyperfine.", "Note".bold().red() ); }