File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 184184 height : 10px ;
185185 }
186186
187- # benches td {
187+ # content td {
188+ text-align : center;
189+ }
190+
191+ # bootstrap th {
188192 text-align : center;
189193 }
190194
@@ -402,18 +406,25 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
402406 </ template >
403407 </ table >
404408 < br />
405- < table class ="compare " style ="margin: auto; " v-if ="data && Object.keys(data.a.bootstrap).length > 0 ">
409+ < table id ="bootstrap " class ="compare " style ="margin: auto; "
410+ v-if ="data && Object.keys(data.a.bootstrap).length > 0 ">
406411 < tr >
407412 < td colspan ="4 "> bootstrap timings; variance is 1-3% on smaller benchmarks! Values in seconds.</ td >
408413 </ tr >
409414 < tr >
410415 < th > total</ th >
411416 < th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
412417 < th v-if ="bootstrapTotals.b "> B: {{bootstrapTotals.b.toFixed(3)}}</ th >
418+ < th v-if ="bootstrapTotals.a && bootstrapTotals.b ">
419+ Total: {{(bootstrapTotals.b - bootstrapTotals.a).toFixed(1)}}
420+ < div v-bind:class ="diffClass(bootstrapTotals.b - bootstrapTotals.a) ">
421+ ({{((bootstrapTotals.b - bootstrapTotals.a ) / bootstrapTotals.a).toFixed(3)}}%)
422+ </ div >
423+ </ th >
413424 </ tr >
414425 < template v-for ="bootstrap in bootstraps ">
415426 < tr >
416- < th style ="width: 19em; "> {{bootstrap.name}}</ th >
427+ < th style ="text-align: right; width: 19em; "> {{bootstrap.name}}</ th >
417428 < td v-if ="bootstrap.a "> {{bootstrap.a}}</ td >
418429 < td v-if ="bootstrap.b "> {{bootstrap.b}}</ td >
419430 < td >
@@ -655,6 +666,16 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
655666 }
656667 return klass ;
657668
669+ } ,
670+ diffClass ( diff ) {
671+ let klass = "" ;
672+ if ( diff > 1 ) {
673+ klass = 'positive' ;
674+ } else if ( diff < - 1 ) {
675+ klass = 'negative' ;
676+ }
677+ return klass ;
678+
658679 } ,
659680 detailedQueryLink ( commit , bench , run ) {
660681 return `/detailed-query.html?commit=${ commit } &benchmark=${ bench } &run_name=${ run } ` ;
You can’t perform that action at this time.
0 commit comments