File tree Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -565,19 +565,8 @@ struct BenchRustcOption {
565
565
enum Commands {
566
566
/// Benchmarks the performance of programs generated by a local rustc
567
567
BenchRuntimeLocal {
568
- /// The path to the local rustc to measure
569
- rustc : String ,
570
- /// Identifier to associate benchmark results with
571
- #[ clap( long) ]
572
- id : Option < String > ,
573
-
574
- /// Exclude all benchmarks matching a prefix in this comma-separated list
575
- #[ clap( long) ]
576
- exclude : Option < String > ,
577
-
578
- /// Include only benchmarks matching a prefix in this comma-separated list
579
- #[ clap( long) ]
580
- include : Option < String > ,
568
+ #[ clap( flatten) ]
569
+ local : LocalOptions ,
581
570
582
571
/// How many iterations of each benchmark should be executed.
583
572
#[ clap( long, default_value = "5" ) ]
@@ -714,17 +703,11 @@ fn main_result() -> anyhow::Result<i32> {
714
703
let target_triple = format ! ( "{}-unknown-linux-gnu" , std:: env:: consts:: ARCH ) ;
715
704
716
705
match args. command {
717
- Commands :: BenchRuntimeLocal {
718
- rustc,
719
- id,
720
- exclude,
721
- include,
722
- iterations,
723
- } => {
706
+ Commands :: BenchRuntimeLocal { local, iterations } => {
724
707
bench_runtime (
725
- & rustc,
726
- id. as_deref ( ) ,
727
- BenchmarkFilter :: new ( exclude, include) ,
708
+ & local . rustc ,
709
+ local . id . as_deref ( ) ,
710
+ BenchmarkFilter :: new ( local . exclude , local . include ) ,
728
711
runtime_benchmark_dir,
729
712
iterations,
730
713
) ?;
You can’t perform that action at this time.
0 commit comments