MOBILE-3833 performance: Sort tests in summary

main
Noel De Martin 2022-02-03 13:24:48 +01:00
parent 7c834281ce
commit fdd5d5d8a5
1 changed files with 9 additions and 1 deletions

View File

@ -75,5 +75,13 @@ for (const [name, { duration, scripting, styling, blocking, longTasks, database,
};
}
// Sort tests
const tests = Object.keys(performanceMeasures).sort();
const sortedPerformanceMeasures = {};
for (const test of tests) {
sortedPerformanceMeasures[test] = performanceMeasures[test];
}
// Display data
console.table(performanceMeasures);
console.table(sortedPerformanceMeasures);