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 {
526
526
527
527
impl BenchmarkVariance {
528
528
/// The ratio of change that we consider significant.
529
- const SIGNFICANT_DELTA_THRESHOLD : f64 = 0.02 ;
529
+ const SIGNFICANT_DELTA_THRESHOLD : f64 = 0.01 ;
530
530
/// The percentage of significant changes that we consider too high
531
531
const SIGNFICANT_CHANGE_THRESHOLD : f64 = 5.0 ;
532
532
/// The percentage of change that constitutes noisy data
@@ -557,13 +557,13 @@ impl BenchmarkVariance {
557
557
. collect :: < Vec < _ > > ( ) ;
558
558
559
559
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 ;
561
561
debug ! (
562
562
"Percent significant changes: {:.1}%" ,
563
563
percent_significant_changes
564
564
) ;
565
565
566
- if percent_significant_changes >= Self :: SIGNFICANT_CHANGE_THRESHOLD {
566
+ if percent_significant_changes > Self :: SIGNFICANT_CHANGE_THRESHOLD {
567
567
self . description =
568
568
BenchmarkVarianceDescription :: HighlyVariable ( percent_significant_changes) ;
569
569
return ;
You can’t perform that action at this time.
0 commit comments