Skip to content

Commit

Permalink
Improve error message, mention --shell=none
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Apr 20, 2023
1 parent bf9644d commit 926b8d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/benchmark/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 926b8d0

Please sign in to comment.