diff --git a/site/src/api.rs b/site/src/api.rs index ce3873fbf..b71d1e92e 100644 --- a/site/src/api.rs +++ b/site/src/api.rs @@ -187,6 +187,7 @@ pub mod comparison { pub profile: String, pub scenario: String, pub is_significant: bool, + pub significance_threshold: f64, pub is_dodgy: bool, pub historical_statistics: Option>, pub statistics: (f64, f64), diff --git a/site/src/comparison.rs b/site/src/comparison.rs index 44de6b4fb..9a004a87a 100644 --- a/site/src/comparison.rs +++ b/site/src/comparison.rs @@ -114,6 +114,7 @@ pub async fn handle_compare( scenario: comparison.scenario.to_string(), is_dodgy: comparison.is_dodgy(), is_significant: comparison.is_significant(), + significance_threshold: comparison.signifcance_threshold() * 100.0, historical_statistics: comparison.variance.map(|v| v.data), statistics: comparison.results, }) diff --git a/site/static/compare.html b/site/static/compare.html index 73fd4a96c..46664a0e1 100644 --- a/site/static/compare.html +++ b/site/static/compare.html @@ -192,8 +192,15 @@ text-align: center; } - #benches th { + #benches tbody:first-child th { + text-align: center; + } + + #benches tbody:not(:first-child) th { border-right: dotted 1px; + } + + #benches th { text-align: left; word-break: break-word; width: 25%; @@ -401,6 +408,26 @@

Comparing {{stat}} between { + + + + + + + + + +
Name & ProfileScenario{{before}}{{after}}% Change + Significance Factor? + + How much a particular result is over the significance threshold. A factor of 2.50x + means + the result is 2.5 times over the significance threshold. You can see + here how the significance threshold is calculated. + + +