@@ -580,15 +580,15 @@ fn make_comparison_url(commit: &QueuedCommit, stat: Metric) -> String {
580
580
)
581
581
}
582
582
583
- async fn calculate_stat_comparison (
583
+ async fn calculate_metric_comparison (
584
584
ctxt : & SiteCtxt ,
585
585
commit : & QueuedCommit ,
586
- stat : Metric ,
586
+ metric : Metric ,
587
587
) -> Result < ArtifactComparison , String > {
588
588
match crate :: comparison:: compare (
589
589
collector:: Bound :: Commit ( commit. parent_sha . clone ( ) ) ,
590
590
collector:: Bound :: Commit ( commit. sha . clone ( ) ) ,
591
- stat ,
591
+ metric ,
592
592
ctxt,
593
593
)
594
594
. await
@@ -611,7 +611,7 @@ async fn summarize_run(
611
611
comparison_url = make_comparison_url( & commit, Metric :: Instructions )
612
612
) ;
613
613
614
- let inst_comparison = calculate_stat_comparison ( ctxt, & commit, Metric :: Instructions ) . await ?;
614
+ let inst_comparison = calculate_metric_comparison ( ctxt, & commit, Metric :: Instructions ) . await ?;
615
615
616
616
let errors = if !inst_comparison. newly_failed_benchmarks . is_empty ( ) {
617
617
let benchmarks = inst_comparison
@@ -629,7 +629,7 @@ async fn summarize_run(
629
629
. summarize_by_category ( & benchmark_map) ;
630
630
631
631
let mut table_written = false ;
632
- let stats = vec ! [
632
+ let metrics = vec ! [
633
633
(
634
634
"Instruction count" ,
635
635
Metric :: Instructions ,
@@ -640,24 +640,24 @@ async fn summarize_run(
640
640
"Max RSS (memory usage)" ,
641
641
Metric :: MaxRSS ,
642
642
true ,
643
- calculate_stat_comparison ( ctxt, & commit, Metric :: MaxRSS ) . await ?,
643
+ calculate_metric_comparison ( ctxt, & commit, Metric :: MaxRSS ) . await ?,
644
644
) ,
645
645
(
646
646
"Cycles" ,
647
647
Metric :: Cycles ,
648
648
true ,
649
- calculate_stat_comparison ( ctxt, & commit, Metric :: Cycles ) . await ?,
649
+ calculate_metric_comparison ( ctxt, & commit, Metric :: Cycles ) . await ?,
650
650
) ,
651
651
] ;
652
652
653
- for ( title, stat , hidden, comparison) in stats {
653
+ for ( title, metric , hidden, comparison) in metrics {
654
654
message. push_str ( & format ! (
655
655
"\n ### [{title}]({})\n " ,
656
- make_comparison_url( & commit, stat )
656
+ make_comparison_url( & commit, metric )
657
657
) ) ;
658
658
659
659
let ( primary, secondary) = comparison. summarize_by_category ( & benchmark_map) ;
660
- table_written |= write_stat_summary ( primary, secondary, hidden, & mut message) . await ;
660
+ table_written |= write_metric_summary ( primary, secondary, hidden, & mut message) . await ;
661
661
}
662
662
663
663
if table_written {
@@ -677,7 +677,7 @@ async fn summarize_run(
677
677
}
678
678
679
679
/// Returns true if a summary table was written to `message`.
680
- async fn write_stat_summary (
680
+ async fn write_metric_summary (
681
681
primary : ArtifactComparisonSummary ,
682
682
secondary : ArtifactComparisonSummary ,
683
683
hidden : bool ,
0 commit comments