Add new (hidden) --min-benchmarking-time option

This commit is contained in:
David Peter authored and David Peter committed 2022-09-07 09:13:53 +02:00
1 parent 77e1b5e72f
commit dffbdc34d4
4 files changed
+24 -4

No files matched your search

+11
View File
@@ -294,6 +294,17 @@ fn build_command() -> Command<'static> {
.help("Give a meaningful name to a command. This can be specified multiple times \
if several commands are benchmarked."),
)
// This option is hidden for now, as it is not yet clear yet if we want to 'stabilize' this,
// see discussion in https://github.com/sharkdp/hyperfine/issues/527
.arg(
Arg::new("min-benchmarking-time")
.long("min-benchmarking-time")
.takes_value(true)
.hide(true)
.help("Set the minimum time (in seconds) to run benchmarks. Note that the number of \
benchmark runs is additionally influenced by the `--min-runs`, `--max-runs`, and \
`--runs` option.")
)
.arg(
Arg::new("debug-mode")
.long("debug-mode")