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 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
@@ -372,22 +376,25 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
372376 </ template >
373377 </ table >
374378 < 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 ">
376381 < tr >
377382 < td colspan ="4 "> bootstrap timings; variance is 1-3% on smaller benchmarks! Values in seconds.</ td >
378383 </ tr >
379384 < tr >
380385 < th > total</ th >
381386 < th v-if ="bootstrapTotals.a "> A: {{bootstrapTotals.a.toFixed(3)}}</ th >
382387 < 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 >
386393 </ th >
387394 </ tr >
388395 < template v-for ="bootstrap in bootstraps ">
389396 < tr >
390- < th style ="width: 19em; "> {{bootstrap.name}}</ th >
397+ < th style ="text-align: right; width: 19em; "> {{bootstrap.name}}</ th >
391398 < td v-if ="bootstrap.a "> {{bootstrap.a}}</ td >
392399 < td v-if ="bootstrap.b "> {{bootstrap.b}}</ td >
393400 < td >
You can’t perform that action at this time.
0 commit comments