Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sort by abs delta. fix filter
  • Loading branch information
connorjclark committed Oct 3, 2019
commit c3e52157b563adb2d0882e06b48b7fb16c49f0c6
3 changes: 1 addition & 2 deletions lighthouse-core/scripts/compare-timings.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ function filter(results) {
for (const result of results) {
for (const key in result) {
if (reportExcludeRegex.test(key)) delete result[key];
delete result[key];
}
}
}
Expand Down Expand Up @@ -261,7 +260,7 @@ function compare() {
if (!exists(aValue)) return 1;
else if (!exists(bValue)) return -1;

return (argv.desc ? -1 : 1) * (aValue - bValue);
return (argv.desc ? 1 : -1) * (Math.abs(aValue) - Math.abs(bValue));
});
filter(results);
print(results);
Expand Down