File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,10 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
380380 < th > total</ th >
381381 < th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
382382 < th v-if ="bootstrapTotals.b "> B: {{bootstrapTotals.b.toFixed(3)}}</ th >
383+ < th v-if ="bootstrapTotals.a && bootstrapTotals.b "
384+ v-bind:class ="diffClass(bootstrapTotals.b - bootstrapTotals.a) ">
385+ {{(bootstrapTotals.b - bootstrapTotals.a).toFixed(3)}}
386+ </ th >
383387 </ tr >
384388 < template v-for ="bootstrap in bootstraps ">
385389 < tr >
@@ -594,6 +598,16 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
594598 }
595599 return klass ;
596600
601+ } ,
602+ diffClass ( diff ) {
603+ let klass = "" ;
604+ if ( diff > 1 ) {
605+ klass = 'positive' ;
606+ } else if ( diff < - 1 ) {
607+ klass = 'negative' ;
608+ }
609+ return klass ;
610+
597611 } ,
598612 detailedQueryLink ( commit , bench , run ) {
599613 return `/detailed-query.html?commit=${ commit } &benchmark=${ bench } &run_name=${ run } ` ;
You can’t perform that action at this time.
0 commit comments