File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -644,10 +644,6 @@ impl BenchmarkVariance {
644
644
self . data . push ( value) ;
645
645
}
646
646
647
- fn mean ( & self ) -> f64 {
648
- self . data . iter ( ) . sum :: < f64 > ( ) / self . data . len ( ) as f64
649
- }
650
-
651
647
/// The percent change of the deltas sorted from smallest delta to largest
652
648
fn percent_changes ( & self ) -> Vec < f64 > {
653
649
let mut deltas = self
@@ -686,7 +682,6 @@ impl BenchmarkVariance {
686
682
fn calculate_description ( & mut self ) {
687
683
self . description = BenchmarkVarianceDescription :: Normal ;
688
684
689
- let results_mean = self . mean ( ) ;
690
685
let percent_changes = self . percent_changes ( ) ;
691
686
let non_significant = percent_changes
692
687
. iter ( )
@@ -708,8 +703,8 @@ impl BenchmarkVariance {
708
703
709
704
let delta_mean =
710
705
non_significant. iter ( ) . cloned ( ) . sum :: < f64 > ( ) / ( non_significant. len ( ) as f64 ) ;
711
- let ratio_change = delta_mean / results_mean ;
712
- if ratio_change > Self :: NOISE_THRESHOLD {
706
+ debug ! ( "Ratio change: {:.4}" , delta_mean) ;
707
+ if delta_mean > Self :: NOISE_THRESHOLD {
713
708
self . description = BenchmarkVarianceDescription :: Noisy ;
714
709
}
715
710
}
You can’t perform that action at this time.
0 commit comments