File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
devops/scripts/benchmarks/html Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -681,6 +681,18 @@ function getLayerTags(metadata) {
681
681
682
682
function processLayerComparisonsData ( benchmarkRuns ) {
683
683
const groupedResults = { } ;
684
+ const labelsByGroup = { } ;
685
+
686
+ benchmarkRuns . forEach ( run => {
687
+ run . results . forEach ( result => {
688
+ if ( result . explicit_group ) {
689
+ if ( ! labelsByGroup [ result . explicit_group ] ) {
690
+ labelsByGroup [ result . explicit_group ] = new Set ( ) ;
691
+ }
692
+ labelsByGroup [ result . explicit_group ] . add ( result . label ) ;
693
+ }
694
+ } ) ;
695
+ } ) ;
684
696
685
697
benchmarkRuns . forEach ( run => {
686
698
run . results . forEach ( result => {
@@ -691,13 +703,7 @@ function processLayerComparisonsData(benchmarkRuns) {
691
703
if ( ! metadata ) return ;
692
704
693
705
// Get all benchmark labels in this group
694
- const labelsInGroup = new Set (
695
- benchmarkRuns . flatMap ( r =>
696
- r . results
697
- . filter ( res => res . explicit_group === result . explicit_group )
698
- . map ( res => res . label )
699
- )
700
- ) ;
706
+ const labelsInGroup = labelsByGroup [ result . explicit_group ] ;
701
707
702
708
// Check if this group compares different layers
703
709
const uniqueLayers = new Set ( ) ;
You can’t perform that action at this time.
0 commit comments