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 @@ -211,12 +211,12 @@ impl Metric {
211
211
}
212
212
}
213
213
214
- /// Determines the magntiude of a relative change in percentage terms
214
+ /// Determines the magnitude of a percent relative change for a given metric.
215
215
///
216
216
/// Takes into account how noisy the stat is. For example, instruction
217
217
/// count which is normally not very noisy has smaller thresholds than
218
218
/// max-rss which can be noisy.
219
- fn absolute_magnitude ( & self , change : f64 ) -> Magnitude {
219
+ fn relative_change_magnitude ( & self , change : f64 ) -> Magnitude {
220
220
let noise_factor = if self . is_typically_noisy ( ) { 2.0 } else { 1.0 } ;
221
221
let change = change / noise_factor;
222
222
if change < 0.2 {
@@ -1110,7 +1110,7 @@ impl TestResultComparison {
1110
1110
} else {
1111
1111
Magnitude :: VeryLarge
1112
1112
} ;
1113
- let absolute_magnitude = self . stat . absolute_magnitude ( change * 100.0 ) ;
1113
+ let absolute_magnitude = self . stat . relative_change_magnitude ( change * 100.0 ) ;
1114
1114
fn as_u8 ( m : Magnitude ) -> u8 {
1115
1115
match m {
1116
1116
Magnitude :: VerySmall => 1 ,
You can’t perform that action at this time.
0 commit comments