164
164
border : 1px solid;
165
165
cursor : help;
166
166
}
167
+
168
+ # benches tbody ::before {
169
+ content : '' ;
170
+ display : block;
171
+ height : 10px ;
172
+ }
173
+
174
+ # benches td {
175
+ text-align : center;
176
+ }
177
+
178
+ # benches th {
179
+ border-right : dotted 1px ;
180
+ }
181
+
182
+ .benchmark-name {
183
+ text-align : center;
184
+ }
167
185
</ style >
168
186
< script src ="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js "> </ script >
169
187
</ head >
@@ -302,21 +320,12 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
302
320
</ div >
303
321
</ fieldset >
304
322
< div v-if ="data " id ="content " style ="margin-top: 15px ">
305
- < table class ="compare " style ="width: 80%; margin: 0 auto; font-size: medium !important; ">
306
- < tbody >
307
- < template v-for ="bench in benches ">
308
- < tr data-field-start ="true ">
309
- < th >
310
- < details >
311
- < summary > {{ trimBenchName(bench.name) }}</ summary >
312
- </ details >
313
- </ th >
314
- < td > min: < span v-bind:class ="percentClass(bench.minPct) "> {{bench.minPct}}%</ span > </ td >
315
- < td > max: < span v-bind:class ="percentClass(bench.maxPct) "> {{bench.maxPct}}%</ span > </ td >
316
- < td > </ td >
317
- </ tr >
323
+ < table id ="benches " class ="compare " style ="width: 80%; margin: 0 auto; font-size: medium !important; ">
324
+ < template v-for ="bench in benches ">
325
+ < tbody >
318
326
< template v-for ="run in bench.variants ">
319
327
< tr >
328
+ < th v-if ="run.index === 0 " v-bind:rowspan ="bench.variants.length "> {{bench.name}}</ th >
320
329
< td > {{ run.casename }}</ td >
321
330
< td >
322
331
< a v-bind:href ="detailedQueryLink(data.a.commit, bench.name, run.casename) ">
@@ -338,8 +347,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
338
347
</ td >
339
348
</ tr >
340
349
</ template >
341
- </ template >
342
- </ tbody >
350
+ </ tbody >
351
+ </ template >
343
352
</ table >
344
353
< br />
345
354
< table class ="compare " style ="margin: auto; " v-if ="data && Object.keys(data.a.bootstrap).length > 0 ">
@@ -352,7 +361,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
352
361
< th v-if ="bootstrapTotals.b "> B: {{bootstrapTotals.b.toFixed(3)}}</ th >
353
362
</ tr >
354
363
< template v-for ="bootstrap in bootstraps ">
355
- < tr data-field-start =" true " >
364
+ < tr >
356
365
< th style ="width: 19em; "> {{bootstrap.name}}</ th >
357
366
< td v-if ="bootstrap.a "> {{bootstrap.a}}</ td >
358
367
< td v-if ="bootstrap.b "> {{bootstrap.b}}</ td >
@@ -431,6 +440,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
431
440
}
432
441
function toVariants ( name ) {
433
442
let variants = [ ] ;
443
+ let index = 0 ;
434
444
for ( let d of data . a . data [ name ] ) {
435
445
const key = d [ 0 ] ;
436
446
const datumA = d [ 1 ] ;
@@ -451,11 +461,13 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
451
461
if ( shouldShowBuild ( key ) ) {
452
462
variants . push ( {
453
463
casename : key ,
464
+ index,
454
465
datumA,
455
466
datumB,
456
467
percent,
457
468
isDodgy,
458
469
} ) ;
470
+ index += 1 ;
459
471
}
460
472
}
461
473
0 commit comments