-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine 10 table and selection paint perf tests into 3
Now one perf test combines several change types. We don't actually care about relative small performance changes for each change type, but care more about larger overall changes. BTW add an OWNERS file containing pdr, schenney and wangxianzhu for perf_tests/paint. Change-Id: I3e88b7c2e6f304dfa80a28b2847704850079b536 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380497 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#802822}
- Loading branch information
1 parent
8d259ac
commit e2cdb1a
Showing
12 changed files
with
134 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pdr@chromium.org | ||
schenney@chromium.org | ||
wangxianzhu@chromium.org |
36 changes: 0 additions & 36 deletions
36
...link/perf_tests/paint/large-table-background-change-with-invisible-collapsed-borders.html
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
.../blink/perf_tests/paint/large-table-background-change-with-visible-collapsed-borders.html
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...ink/perf_tests/paint/large-table-background-change-with-zero-width-collapsed-borders.html
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
third_party/blink/perf_tests/paint/large-table-background-change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<body> | ||
<script src="../resources/runner.js"></script> | ||
<script src="resources/paint.js"></script> | ||
<style> | ||
table { | ||
border-collapse: collapse; | ||
will-change: transform; | ||
} | ||
table.zero-width-border td { | ||
border: 0px solid blue; | ||
} | ||
table.visible-border td { | ||
border: 1px solid blue; | ||
} | ||
</style> | ||
<script> | ||
function createTable(rows, columns) { | ||
var table = document.createElement("TABLE"); | ||
for (var i = 0; i < rows; ++i) { | ||
var tr = document.createElement("TR"); | ||
for (var j = 0; j < columns; ++j) { | ||
var td = document.createElement("TD"); | ||
tr.appendChild(td); | ||
} | ||
table.appendChild(tr); | ||
} | ||
return table; | ||
} | ||
|
||
var table1 = createTable(300, 300); | ||
table1.className = 'zero-width-border'; | ||
document.body.appendChild(table1); | ||
|
||
var table2 = createTable(300, 300); | ||
table2.className = 'invisible-border'; | ||
document.body.appendChild(table2); | ||
|
||
var table3 = createTable(300, 300); | ||
table3.className = 'visible-border'; | ||
document.body.appendChild(table3); | ||
|
||
var count = 0; | ||
var ix = 30; | ||
var iy = 30; | ||
|
||
measurePaint({ | ||
iterationCount: 30, | ||
run: function() { | ||
var table = [table1, table2, table3][count % 3]; | ||
table.childNodes[iy].childNodes[ix].style.backgroundColor = 'teal'; | ||
ix++; | ||
iy++; | ||
count++; | ||
}, | ||
}); | ||
</script> | ||
</body> |
38 changes: 0 additions & 38 deletions
38
third_party/blink/perf_tests/paint/large-table-collapsed-border-change-with-backgrounds.html
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
third_party/blink/perf_tests/paint/large-table-collapsed-border-change-with-text.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
third_party/blink/perf_tests/paint/large-table-repaint.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.