MOBILE-3833 performance: Sort tests in summary
parent
7c834281ce
commit
fdd5d5d8a5
|
@ -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
|
// Display data
|
||||||
console.table(performanceMeasures);
|
console.table(sortedPerformanceMeasures);
|
||||||
|
|
Loading…
Reference in New Issue