diff --git a/bin/plugin/commands/performance.js b/bin/plugin/commands/performance.js index 6486b61176082..6bb98ec4646bb 100644 --- a/bin/plugin/commands/performance.js +++ b/bin/plugin/commands/performance.js @@ -329,16 +329,22 @@ async function runPerformanceTests( branches, options ) { for ( const branch of branches ) { const medians = mapValues( { - serverResponse: rawResults.map( ( r ) => r.serverResponse ), - firstPaint: rawResults.map( ( r ) => r.firstPaint ), + serverResponse: rawResults.map( + ( r ) => r[ branch ].serverResponse + ), + firstPaint: rawResults.map( + ( r ) => r[ branch ].firstPaint + ), domContentLoaded: rawResults.map( - ( r ) => r.domContentLoaded + ( r ) => r[ branch ].domContentLoaded ), - loaded: rawResults.map( ( r ) => r.loaded ), + loaded: rawResults.map( ( r ) => r[ branch ].loaded ), firstContentfulPaint: rawResults.map( - ( r ) => r.firstContentfulPaint + ( r ) => r[ branch ].firstContentfulPaint + ), + firstBlock: rawResults.map( + ( r ) => r[ branch ].firstBlock ), - firstBlock: rawResults.map( ( r ) => r.firstBlock ), type: rawResults.map( ( r ) => r[ branch ].type ), minType: rawResults.map( ( r ) => r[ branch ].minType ), maxType: rawResults.map( ( r ) => r[ branch ].maxType ),