From fdd5d5d8a56c08a72bc9c337535d6dadb97e02c9 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 3 Feb 2022 13:24:48 +0100 Subject: [PATCH] MOBILE-3833 performance: Sort tests in summary --- scripts/print-performance-measures.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/print-performance-measures.js b/scripts/print-performance-measures.js index 2b611be01..24019b117 100755 --- a/scripts/print-performance-measures.js +++ b/scripts/print-performance-measures.js @@ -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);