@@ -134,6 +134,7 @@ const app = Vue.createApp({
134134 category : ( benchmarkMap [ c . benchmark ] || { } ) . category || "secondary" ,
135135 isRelevant : c . is_relevant ,
136136 significanceFactor : c . significance_factor ,
137+ significanceThreshold : ( c . significance_threshold * 100.0 ) , // ensure the threshold is in %
137138 datumA,
138139 datumB,
139140 percent,
@@ -152,7 +153,7 @@ const app = Vue.createApp({
152153 bootstrapTotals ( ) {
153154 const a = this . data . a . bootstrap_total / 1e9 ;
154155 const b = this . data . b . bootstrap_total / 1e9 ;
155- return { a, b} ;
156+ return { a, b } ;
156157 } ,
157158 bootstraps ( ) {
158159 return Object . entries ( this . data . a . bootstrap ) . map ( e => {
@@ -355,14 +356,20 @@ app.component('test-cases-table', {
355356 <th>Profile</th>
356357 <th>Scenario</th>
357358 <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>
358368 <th>
359369 Significance Factor<span class="tooltip">?
360370 <span class="tooltiptext">
361371 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.
366373 </span>
367374 </span>
368375 </th>
@@ -393,6 +400,9 @@ app.component('test-cases-table', {
393400 </span>
394401 </a>
395402 </td>
403+ <td>
404+ {{ testCase.significanceThreshold ? testCase.significanceThreshold.toFixed(2) + "%" : "-" }}
405+ </td>
396406 <td>
397407 {{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" : "-" }}
398408 </td>
@@ -447,7 +457,7 @@ const SummaryRange = {
447457 [<SummaryPercentValue :value="range[0]" :padWidth="6" />, <SummaryPercentValue :value="range[1]" :padWidth="6" />]
448458</div>
449459<div v-else style="text-align: center;">-</div>
450- ` , components : { SummaryPercentValue}
460+ ` , components : { SummaryPercentValue }
451461} ;
452462const SummaryCount = {
453463 props : {
@@ -510,7 +520,7 @@ app.component('summary-table', {
510520 </tbody>
511521</table>
512522` ,
513- components : { SummaryRange, SummaryPercentValue, SummaryCount}
523+ components : { SummaryRange, SummaryPercentValue, SummaryCount }
514524} ) ;
515525
516526app . component ( "aggregations" , {
0 commit comments