@@ -135,6 +135,7 @@ pub async fn handle_compare(
135
135
profile : comparison. profile . to_string ( ) ,
136
136
scenario : comparison. scenario . to_string ( ) ,
137
137
is_relevant : comparison. is_relevant ( ) ,
138
+ significance_threshold : comparison. significance_threshold ( ) ,
138
139
significance_factor : comparison. significance_factor ( ) ,
139
140
statistics : comparison. results ,
140
141
} )
@@ -1012,8 +1013,7 @@ pub struct HistoricalDataMap {
1012
1013
}
1013
1014
1014
1015
impl HistoricalDataMap {
1015
- const NUM_PREVIOUS_COMMITS : usize = 100 ;
1016
- const MIN_PREVIOUS_COMMITS : usize = 50 ;
1016
+ const NUM_PREVIOUS_COMMITS : usize = 30 ;
1017
1017
1018
1018
async fn calculate (
1019
1019
ctxt : & SiteCtxt ,
@@ -1030,7 +1030,7 @@ impl HistoricalDataMap {
1030
1030
) ) ;
1031
1031
1032
1032
// Return early if we don't have enough data for historical analysis
1033
- if previous_commits. len ( ) < Self :: MIN_PREVIOUS_COMMITS {
1033
+ if previous_commits. len ( ) < Self :: NUM_PREVIOUS_COMMITS {
1034
1034
return Ok ( Self {
1035
1035
data : historical_data,
1036
1036
} ) ;
@@ -1054,7 +1054,7 @@ impl HistoricalDataMap {
1054
1054
}
1055
1055
1056
1056
// Only retain test cases for which we have enough data to calculate variance.
1057
- historical_data. retain ( |_, v| v. data . len ( ) >= Self :: MIN_PREVIOUS_COMMITS ) ;
1057
+ historical_data. retain ( |_, v| v. data . len ( ) >= Self :: NUM_PREVIOUS_COMMITS ) ;
1058
1058
1059
1059
Ok ( Self {
1060
1060
data : historical_data,
0 commit comments