@@ -673,15 +673,15 @@ impl BenchmarkVariance {
673
673
// |
674
674
// ---- -significance_threshold()
675
675
fn significance_threshold ( & self ) -> f64 {
676
- let ( q1, median , q3) = self . quartiles ( ) ;
676
+ let ( q1, q3) = self . quartiles ( ) ;
677
677
678
- // Changes that are IQR_MULTIPLIER away from the median are considered
679
- // significant (i.e. outliers) .
680
- median + ( q3 - q1) * Self :: IQR_MULTIPLIER
678
+ // Changes that are IQR_MULTIPLIER away from the Q3 are considered
679
+ // outliers, and we judge those as significant .
680
+ q3 + ( q3 - q1) * Self :: IQR_MULTIPLIER
681
681
}
682
682
683
- // (q1, q2=median, q3)
684
- fn quartiles ( & self ) -> ( f64 , f64 , f64 ) {
683
+ // (q1, q3)
684
+ fn quartiles ( & self ) -> ( f64 , f64 ) {
685
685
let pcs = self . percent_changes ( ) ;
686
686
fn median ( data : & [ f64 ] ) -> f64 {
687
687
if data. len ( ) % 2 == 0 {
@@ -698,10 +698,9 @@ impl BenchmarkVariance {
698
698
( len / 2 - 1 , len / 2 + 1 )
699
699
} ;
700
700
let q1 = median ( & pcs[ ..=h1_end] ) ;
701
- let q2 = median ( & pcs[ ..] ) ;
702
701
let q3 = median ( & pcs[ h2_begin..] ) ;
703
702
704
- ( q1, q2 , q3)
703
+ ( q1, q3)
705
704
}
706
705
707
706
fn calculate_description ( & mut self ) {
0 commit comments