File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ pub mod comparison {
187
187
pub profile : String ,
188
188
pub scenario : String ,
189
189
pub is_significant : bool ,
190
+ pub significance_threshold : f64 ,
190
191
pub is_dodgy : bool ,
191
192
pub historical_statistics : Option < Vec < f64 > > ,
192
193
pub statistics : ( f64 , f64 ) ,
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ pub async fn handle_compare(
114
114
scenario : comparison. scenario . to_string ( ) ,
115
115
is_dodgy : comparison. is_dodgy ( ) ,
116
116
is_significant : comparison. is_significant ( ) ,
117
+ significance_threshold : comparison. signifcance_threshold ( ) * 100.0 ,
117
118
historical_statistics : comparison. variance . map ( |v| v. data ) ,
118
119
statistics : comparison. results ,
119
120
} )
Original file line number Diff line number Diff line change 192
192
text-align : center;
193
193
}
194
194
195
- # benches th {
195
+ # benches tbody : first-child th {
196
+ text-align : center;
197
+ }
198
+
199
+ # benches tbody : not (: first-child ) th {
196
200
border-right : dotted 1px ;
201
+ }
202
+
203
+ # benches th {
197
204
text-align : left;
198
205
word-break : break-word;
199
206
width : 25% ;
@@ -401,6 +408,26 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
401
408
</ div >
402
409
</ div >
403
410
< table id ="benches " class ="compare ">
411
+ < tbody >
412
+ < tr >
413
+ < th > Name & Profile</ th >
414
+ < th > Scenario</ th >
415
+ < th > {{before}}</ th >
416
+ < th > {{after}}</ th >
417
+ < th > % Change</ th >
418
+ < th >
419
+ Significance Factor< span class ="tooltip "> ?
420
+ < span class ="tooltiptext ">
421
+ How much a particular result is over the significance threshold. A factor of 2.50x
422
+ means
423
+ the result is 2.5 times over the significance threshold. You can see < a
424
+ href ="https://github.com/rust-lang/rustc-perf/blob/master/docs/comparison-analysis.md#what-makes-a-test-result-significant ">
425
+ here</ a > how the significance threshold is calculated.
426
+ </ span >
427
+ </ span >
428
+ </ th >
429
+ </ tr >
430
+ </ tbody >
404
431
< template v-for ="bench in benches ">
405
432
< tbody >
406
433
< template v-for ="run in bench.variants ">
@@ -425,6 +452,9 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
425
452
</ span >
426
453
</ a >
427
454
</ td >
455
+ < td >
456
+ {{ Math.abs(run.percent / run.significanceThreshold).toFixed(2) }}x
457
+ </ td >
428
458
</ tr >
429
459
</ template >
430
460
</ tbody >
@@ -541,6 +571,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
541
571
datumB,
542
572
percent,
543
573
isDodgy,
574
+ significanceThreshold : r . significance_threshold ,
544
575
isSignificant
545
576
} ) ;
546
577
}
You can’t perform that action at this time.
0 commit comments