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 184
184
height : 10px ;
185
185
}
186
186
187
- # benches td {
187
+ # content td {
188
+ text-align : center;
189
+ }
190
+
191
+ # bootstrap th {
188
192
text-align : center;
189
193
}
190
194
@@ -402,18 +406,25 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
402
406
</ template >
403
407
</ table >
404
408
< 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 ">
406
411
< tr >
407
412
< td colspan ="4 "> bootstrap timings; variance is 1-3% on smaller benchmarks! Values in seconds.</ td >
408
413
</ tr >
409
414
< tr >
410
415
< th > total</ th >
411
416
< th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
412
417
< 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 >
413
424
</ tr >
414
425
< template v-for ="bootstrap in bootstraps ">
415
426
< tr >
416
- < th style ="width: 19em; "> {{bootstrap.name}}</ th >
427
+ < th style ="text-align: right; width: 19em; "> {{bootstrap.name}}</ th >
417
428
< td v-if ="bootstrap.a "> {{bootstrap.a}}</ td >
418
429
< td v-if ="bootstrap.b "> {{bootstrap.b}}</ td >
419
430
< td >
@@ -655,6 +666,16 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
655
666
}
656
667
return klass ;
657
668
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
+
658
679
} ,
659
680
detailedQueryLink ( commit , bench , run ) {
660
681
return `/detailed-query.html?commit=${ commit } &benchmark=${ bench } &run_name=${ run } ` ;
You can’t perform that action at this time.
0 commit comments