Skip to content

Commit b29c783

Browse files
committed
Add a significance threshold column
1 parent cd2cd93 commit b29c783

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

site/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ pub mod comparison {
187187
pub profile: String,
188188
pub scenario: String,
189189
pub is_significant: bool,
190+
pub significance_threshold: f64,
190191
pub is_dodgy: bool,
191192
pub historical_statistics: Option<Vec<f64>>,
192193
pub statistics: (f64, f64),

site/src/comparison.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub async fn handle_compare(
114114
scenario: comparison.scenario.to_string(),
115115
is_dodgy: comparison.is_dodgy(),
116116
is_significant: comparison.is_significant(),
117+
significance_threshold: comparison.signifcance_threshold() * 100.0,
117118
historical_statistics: comparison.variance.map(|v| v.data),
118119
statistics: comparison.results,
119120
})

site/static/compare.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
425425
</span>
426426
</a>
427427
</td>
428+
<td>
429+
{{ run.significanceThreshold.toFixed(2) }}%
430+
</td>
428431
</tr>
429432
</template>
430433
</tbody>
@@ -541,6 +544,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
541544
datumB,
542545
percent,
543546
isDodgy,
547+
significanceThreshold: r.significance_threshold,
544548
isSignificant
545549
});
546550
}

0 commit comments

Comments
 (0)