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">{
380
380
< th > total</ th >
381
381
< th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
382
382
< 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 >
383
387
</ tr >
384
388
< template v-for ="bootstrap in bootstraps ">
385
389
< tr >
@@ -594,6 +598,16 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
594
598
}
595
599
return klass ;
596
600
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
+
597
611
} ,
598
612
detailedQueryLink ( commit , bench , run ) {
599
613
return `/detailed-query.html?commit=${ commit } &benchmark=${ bench } &run_name=${ run } ` ;
You can’t perform that action at this time.
0 commit comments