106
106
font-weight : bold;
107
107
}
108
108
109
- # states-list {
109
+ . states-list {
110
110
display : flex;
111
111
flex-direction : column;
112
112
align-items : start;
113
113
list-style : none;
114
114
margin : 0 ;
115
115
padding : 0 ;
116
116
}
117
- .section-scenarios {
117
+ .section-list-wrapper {
118
118
flex-direction : column;
119
119
}
120
120
121
121
@media (min-width : 760px ) {
122
- # states-list {
123
- justify-content : space-around ;
122
+ . states-list {
123
+ justify-content : start ;
124
124
flex-direction : row;
125
125
align-items : center;
126
126
width : 80% ;
127
127
}
128
- .section-scenarios {
128
+ .section-list-wrapper {
129
129
flex-direction : row;
130
130
}
131
131
}
132
+ .states-list > li {
133
+ margin-right : 15px ;
134
+ }
132
135
133
136
.tooltip {
134
137
position : relative;
@@ -349,7 +352,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
349
352
< div class ="section-heading "> Filter</ div >
350
353
< input id ="filter " type ="text " v-model ="filter.name " />
351
354
</ div >
352
- < div class ="section section-scenarios ">
355
+ < div class ="section section-list-wrapper ">
353
356
< div class ="section-heading ">
354
357
< div style ="width: 160px; ">
355
358
< span > Scenarios</ span >
@@ -360,7 +363,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
360
363
</ span >
361
364
</ div >
362
365
</ div >
363
- < ul id ="states-list ">
366
+ < ul class ="states-list ">
364
367
< li >
365
368
< label >
366
369
< input type ="checkbox " id ="build-full " v-model ="filter.scenario.full " />
@@ -412,6 +415,42 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
412
415
</ li >
413
416
</ ul >
414
417
</ div >
418
+ < div class ="section section-list-wrapper ">
419
+ < div class ="section-heading ">
420
+ < div style ="width: 160px; ">
421
+ < span > Categories</ span >
422
+ < span class ="tooltip "> ?
423
+ < span class ="tooltiptext ">
424
+ Select benchmarks based on their category (primary or secondary).
425
+ </ span >
426
+ </ span >
427
+ </ div >
428
+ </ div >
429
+ < ul class ="states-list ">
430
+ < li >
431
+ < label >
432
+ < input type ="checkbox " v-model ="filter.category.primary " />
433
+ < span class ="cache-label "> primary</ span >
434
+ </ label >
435
+ < div class ="tooltip "> ?
436
+ < span class ="tooltiptext ">
437
+ Real-world benchmarks.
438
+ </ span >
439
+ </ div >
440
+ </ li >
441
+ < li >
442
+ < label >
443
+ < input type ="checkbox " v-model ="filter.category.secondary " />
444
+ < span class ="cache-label "> secondary</ span >
445
+ </ label >
446
+ < div class ="tooltip "> ?
447
+ < span class ="tooltiptext ">
448
+ Artificial benchmarks and stress-tests.
449
+ </ span >
450
+ </ div >
451
+ </ li >
452
+ </ ul >
453
+ </ div >
415
454
< div class ="section ">
416
455
< div class ="section-heading "> < span > Show only significant changes</ span >
417
456
< span class ="tooltip "> ?
@@ -663,6 +702,10 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
663
702
incrFull : true ,
664
703
incrUnchanged : true ,
665
704
incrPatched : true
705
+ } ,
706
+ category : {
707
+ primary : true ,
708
+ secondary : true
666
709
}
667
710
} ,
668
711
showRawData : false ,
@@ -702,6 +745,12 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
702
745
}
703
746
}
704
747
748
+ function categoryFilter ( category ) {
749
+ if ( category === 'primary' && ! filter . category . primary ) return false ;
750
+ if ( category === 'secondary' && ! filter . category . secondary ) return false ;
751
+ return true ;
752
+ }
753
+
705
754
function shouldShowTestCase ( testCase ) {
706
755
const name = `${ testCase . benchmark } ${ testCase . profile } ${ testCase . scenario } ` ;
707
756
let nameFilter = filter . name && filter . name . trim ( ) ;
@@ -711,7 +760,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
711
760
712
761
const magnitudeFilter = filter . filterVerySmall ? testCase . magnitude != "very small" : true ;
713
762
714
- return scenarioFilter ( testCase . scenario ) && significanceFilter && nameFilter && magnitudeFilter ;
763
+ return scenarioFilter ( testCase . scenario ) && categoryFilter ( testCase . category ) && significanceFilter && nameFilter && magnitudeFilter ;
715
764
}
716
765
717
766
let testCases =
0 commit comments