mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Add new --sort option
This adds a new `--sort` option to choose the way in which the results in the speed comparison and the markup exports are ordered. closes #614 closes #601
This commit is contained in:
1 parent
2393de0c36
commit
ac617c8714
12 files changed
+285
-89
No files matched your search
+32
-15
@@ -160,21 +160,6 @@ fn build_command() -> Command {
|
||||
possible parameter combinations.\n"
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("style")
|
||||
.long("style")
|
||||
.action(ArgAction::Set)
|
||||
.value_name("TYPE")
|
||||
.value_parser(["auto", "basic", "full", "nocolor", "color", "none"])
|
||||
.help(
|
||||
"Set output style type (default: auto). Set this to 'basic' to disable output \
|
||||
coloring and interactive elements. Set it to 'full' to enable all effects \
|
||||
even if no interactive terminal was detected. Set this to 'nocolor' to \
|
||||
keep the interactive output without any colors. Set this to 'color' to keep \
|
||||
the colors without any interactive output. Set this to 'none' to disable all \
|
||||
the output of the tool.",
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("shell")
|
||||
.long("shell")
|
||||
@@ -204,6 +189,38 @@ fn build_command() -> Command {
|
||||
.short('i')
|
||||
.help("Ignore non-zero exit codes of the benchmarked programs."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("style")
|
||||
.long("style")
|
||||
.action(ArgAction::Set)
|
||||
.value_name("TYPE")
|
||||
.value_parser(["auto", "basic", "full", "nocolor", "color", "none"])
|
||||
.help(
|
||||
"Set output style type (default: auto). Set this to 'basic' to disable output \
|
||||
coloring and interactive elements. Set it to 'full' to enable all effects \
|
||||
even if no interactive terminal was detected. Set this to 'nocolor' to \
|
||||
keep the interactive output without any colors. Set this to 'color' to keep \
|
||||
the colors without any interactive output. Set this to 'none' to disable all \
|
||||
the output of the tool.",
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("sort")
|
||||
.long("sort")
|
||||
.action(ArgAction::Set)
|
||||
.value_name("METHOD")
|
||||
.value_parser(["auto", "command", "mean-time"])
|
||||
.default_value("auto")
|
||||
.hide_default_value(true)
|
||||
.help(
|
||||
"Specify the sort order of the speed comparison summary and the exported tables for \
|
||||
markup formats (Markdown, AsciiDoc, org-mode):\n \
|
||||
* 'auto' (default): the speed comparison will be ordered by time and\n \
|
||||
the markup tables will be ordered by command (input order).\n \
|
||||
* 'command': order benchmarks in the way they were specified\n \
|
||||
* 'mean-time': order benchmarks by mean runtime\n"
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("time-unit")
|
||||
.long("time-unit")
|
||||
|
||||
Reference in new issue
Block a user