Skip to content

Commit c0b654c

Browse files
committed
Adjust numbers a bit
1 parent 9a29dbe commit c0b654c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/comparison.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ pub struct BenchmarkVariance {
526526

527527
impl 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;

0 commit comments

Comments
 (0)