RESOLVED FIXED Bug 77924
Dashboard on perf-o-matic should be sorted
https://bugs.webkit.org/show_bug.cgi?id=77924
Summary Dashboard on perf-o-matic should be sorted
Ryosuke Niwa
Reported 2012-02-06 18:36:50 PST
Right now, the tests on the dashboard show up on random order( depends on how Python generates JSON, which in turn depends on how they order hashed strings). We should sort them nicely so that people don't have to keep looking for the tests.
Attachments
Fixes the bug (1.53 KB, patch)
2012-02-06 18:43 PST, Ryosuke Niwa
tony: review+
Ryosuke Niwa
Comment 1 2012-02-06 18:43:25 PST
Created attachment 125750 [details] Fixes the bug
Tony Chang
Comment 2 2012-02-07 09:58:47 PST
Comment on attachment 125750 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=125750&action=review > Websites/webkit-perf.appspot.com/js/config.js:84 > + for (test in testToId) > + tests.push(test); Can you use Object.keys(testToId)? > Websites/webkit-perf.appspot.com/js/config.js:88 > + for (var i = 0; i < tests.length; i++) > + sortedTestToId[tests[i]] = testToId[tests[i]]; > + dashboardManifest['testToId'] = sortedTestToId; This is OK, but it would be more efficient to sort when you use dashboardManifest['testToId']. I guess that involves changing perfomatic code.
Ryosuke Niwa
Comment 3 2012-02-07 10:34:28 PST
Comment on attachment 125750 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=125750&action=review >> Websites/webkit-perf.appspot.com/js/config.js:84 >> + tests.push(test); > > Can you use Object.keys(testToId)? Sure. >> Websites/webkit-perf.appspot.com/js/config.js:88 >> + dashboardManifest['testToId'] = sortedTestToId; > > This is OK, but it would be more efficient to sort when you use dashboardManifest['testToId']. I guess that involves changing perfomatic code. Right. And we can't sort tests on Mozilla's version (the order is hard-coded there).
Ryosuke Niwa
Comment 4 2012-04-23 00:00:33 PDT
Note You need to log in before you can comment on or make changes to this bug.