File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ pub struct BenchmarkVariance {
526526
527527impl BenchmarkVariance {
528528 /// The ratio of change that we consider significant.
529- const SIGNFICANT_DELTA_THRESHOLD : f64 = 0.02 ;
529+ const SIGNFICANT_DELTA_THRESHOLD : f64 = 0.01 ;
530530 /// The percentage of significant changes that we consider too high
531531 const SIGNFICANT_CHANGE_THRESHOLD : f64 = 5.0 ;
532532 /// The percentage of change that constitutes noisy data
@@ -557,13 +557,13 @@ impl BenchmarkVariance {
557557 . collect :: < Vec < _ > > ( ) ;
558558
559559 let percent_significant_changes =
560- ( ( self . data . len ( ) - non_significant. len ( ) ) as f64 / self . data . len ( ) as f64 ) * 100.0 ;
560+ ( ( deltas . len ( ) - non_significant. len ( ) ) as f64 / deltas . len ( ) as f64 ) * 100.0 ;
561561 debug ! (
562562 "Percent significant changes: {:.1}%" ,
563563 percent_significant_changes
564564 ) ;
565565
566- if percent_significant_changes >= Self :: SIGNFICANT_CHANGE_THRESHOLD {
566+ if percent_significant_changes > Self :: SIGNFICANT_CHANGE_THRESHOLD {
567567 self . description =
568568 BenchmarkVarianceDescription :: HighlyVariable ( percent_significant_changes) ;
569569 return ;
You can’t perform that action at this time.
0 commit comments