@@ -134,6 +134,7 @@ const app = Vue.createApp({
134
134
category : ( benchmarkMap [ c . benchmark ] || { } ) . category || "secondary" ,
135
135
isRelevant : c . is_relevant ,
136
136
significanceFactor : c . significance_factor ,
137
+ significanceThreshold : ( c . significance_threshold * 100.0 ) , // ensure the threshold is in %
137
138
datumA,
138
139
datumB,
139
140
percent,
@@ -152,7 +153,7 @@ const app = Vue.createApp({
152
153
bootstrapTotals ( ) {
153
154
const a = this . data . a . bootstrap_total / 1e9 ;
154
155
const b = this . data . b . bootstrap_total / 1e9 ;
155
- return { a, b} ;
156
+ return { a, b } ;
156
157
} ,
157
158
bootstraps ( ) {
158
159
return Object . entries ( this . data . a . bootstrap ) . map ( e => {
@@ -355,14 +356,20 @@ app.component('test-cases-table', {
355
356
<th>Profile</th>
356
357
<th>Scenario</th>
357
358
<th>% Change</th>
359
+ <th>
360
+ Significance Threshold<span class="tooltip">?
361
+ <span class="tooltiptext">
362
+ The minimum % change that is considered significant. The higher the significance threshold, the noisier a test case is.
363
+ You can see <a href="https://github.com/rust-lang/rustc-perf/blob/master/docs/comparison-analysis.md#what-makes-a-test-result-significant">
364
+ here</a> how the significance threshold is calculated.
365
+ </span>
366
+ </span>
367
+ </th>
358
368
<th>
359
369
Significance Factor<span class="tooltip">?
360
370
<span class="tooltiptext">
361
371
How much a particular result is over the significance threshold. A factor of 2.50x
362
- means
363
- the result is 2.5 times over the significance threshold. You can see <a
364
- href="https://github.com/rust-lang/rustc-perf/blob/master/docs/comparison-analysis.md#what-makes-a-test-result-significant">
365
- here</a> how the significance threshold is calculated.
372
+ means the result is 2.5 times over the significance threshold.
366
373
</span>
367
374
</span>
368
375
</th>
@@ -393,6 +400,9 @@ app.component('test-cases-table', {
393
400
</span>
394
401
</a>
395
402
</td>
403
+ <td>
404
+ {{ testCase.significanceThreshold ? testCase.significanceThreshold.toFixed(2) + "%" : "-" }}
405
+ </td>
396
406
<td>
397
407
{{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" : "-" }}
398
408
</td>
@@ -447,7 +457,7 @@ const SummaryRange = {
447
457
[<SummaryPercentValue :value="range[0]" :padWidth="6" />, <SummaryPercentValue :value="range[1]" :padWidth="6" />]
448
458
</div>
449
459
<div v-else style="text-align: center;">-</div>
450
- ` , components : { SummaryPercentValue}
460
+ ` , components : { SummaryPercentValue }
451
461
} ;
452
462
const SummaryCount = {
453
463
props : {
@@ -510,7 +520,7 @@ app.component('summary-table', {
510
520
</tbody>
511
521
</table>
512
522
` ,
513
- components : { SummaryRange, SummaryPercentValue, SummaryCount}
523
+ components : { SummaryRange, SummaryPercentValue, SummaryCount }
514
524
} ) ;
515
525
516
526
app . component ( "aggregations" , {
0 commit comments