File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
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
@@ -372,22 +376,25 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
372
376
</ template >
373
377
</ table >
374
378
< br />
375
- < table class ="compare " style ="margin: auto; " v-if ="data && Object.keys(data.a.bootstrap).length > 0 ">
379
+ < table id ="bootstrap " class ="compare " style ="margin: auto; "
380
+ v-if ="data && Object.keys(data.a.bootstrap).length > 0 ">
376
381
< tr >
377
382
< td colspan ="4 "> bootstrap timings; variance is 1-3% on smaller benchmarks! Values in seconds.</ td >
378
383
</ tr >
379
384
< tr >
380
385
< th > total</ th >
381
386
< th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
382
387
< 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)}}
388
+ < th v-if ="bootstrapTotals.a && bootstrapTotals.b ">
389
+ Total: {{(bootstrapTotals.b - bootstrapTotals.a).toFixed(1)}}
390
+ < div v-bind:class ="diffClass(bootstrapTotals.b - bootstrapTotals.a) ">
391
+ ({{((bootstrapTotals.b - bootstrapTotals.a ) / bootstrapTotals.a).toFixed(3)}}%)
392
+ </ div >
386
393
</ th >
387
394
</ tr >
388
395
< template v-for ="bootstrap in bootstraps ">
389
396
< tr >
390
- < th style ="width: 19em; "> {{bootstrap.name}}</ th >
397
+ < th style ="text-align: right; width: 19em; "> {{bootstrap.name}}</ th >
391
398
< td v-if ="bootstrap.a "> {{bootstrap.a}}</ td >
392
399
< td v-if ="bootstrap.b "> {{bootstrap.b}}</ td >
393
400
< td >
You can’t perform that action at this time.
0 commit comments