diff --git a/cli/src/commands/bench/common_ancestors.rs b/cli/src/commands/bench/common_ancestors.rs index ed7cb637a0..b433bb1707 100644 --- a/cli/src/commands/bench/common_ancestors.rs +++ b/cli/src/commands/bench/common_ancestors.rs @@ -42,7 +42,7 @@ pub fn cmd_bench_common_ancestors( let routine = || index.common_ancestors(&[commit1.id().clone()], &[commit2.id().clone()]); run_bench( ui, - &format!("commonancestors-{}-{}", args.revision1, args.revision2), + &format!("common-ancestors-{}-{}", args.revision1, args.revision2), &args.criterion, routine, )?; diff --git a/cli/src/commands/bench/is_ancestor.rs b/cli/src/commands/bench/is_ancestor.rs index b0c9080c64..c0629d9abe 100644 --- a/cli/src/commands/bench/is_ancestor.rs +++ b/cli/src/commands/bench/is_ancestor.rs @@ -42,7 +42,7 @@ pub fn cmd_bench_is_ancestor( let routine = || index.is_ancestor(ancestor_commit.id(), descendant_commit.id()); run_bench( ui, - &format!("isancestor-{}-{}", args.ancestor, args.descendant), + &format!("is-ancestor-{}-{}", args.ancestor, args.descendant), &args.criterion, routine, )?; diff --git a/cli/src/commands/bench/mod.rs b/cli/src/commands/bench/mod.rs index 2c0358bdb9..79eb32c0d0 100644 --- a/cli/src/commands/bench/mod.rs +++ b/cli/src/commands/bench/mod.rs @@ -40,13 +40,9 @@ use crate::ui::Ui; #[derive(Subcommand, Clone, Debug)] #[command(hide = true)] pub enum BenchCommand { - #[command(name = "commonancestors")] CommonAncestors(BenchCommonAncestorsArgs), - #[command(name = "isancestor")] IsAncestor(BenchIsAncestorArgs), - #[command(name = "resolveprefix")] ResolvePrefix(BenchResolvePrefixArgs), - #[command(name = "revset")] Revset(BenchRevsetArgs), } diff --git a/cli/src/commands/bench/resolve_prefix.rs b/cli/src/commands/bench/resolve_prefix.rs index ea408ada0c..bd133dcc47 100644 --- a/cli/src/commands/bench/resolve_prefix.rs +++ b/cli/src/commands/bench/resolve_prefix.rs @@ -40,7 +40,7 @@ pub fn cmd_bench_resolve_prefix( let routine = || index.resolve_commit_id_prefix(&prefix); run_bench( ui, - &format!("resolveprefix-{}", prefix.hex()), + &format!("resolve-prefix-{}", prefix.hex()), &args.criterion, routine, )?;