commit 3f4b804de8bf477fafe37f115c041978dfa16f7b parent ce0042d32d6fad3745d166930aee8df46caf736c Author: Emilio Cobos Álvarez <emilio@crisal.io> Date: Sat, 1 Nov 2025 11:50:36 +0000 Bug 1948933 - Add a test for removal of ton of table rows sequentially. r=layout-reviewers,perftest-reviewers,dshin,sparky This covers both the original test-case and https://github.com/llvm/llvm-project/issues/165839, which Anne pointed me to and happened to be very closely related. Differential Revision: https://phabricator.services.mozilla.com/D270834 Diffstat:
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/perf_reftest_singletons.manifest b/testing/talos/talos/tests/perf-reftest-singletons/perf_reftest_singletons.manifest @@ -48,4 +48,5 @@ % http://localhost/tests/perf-reftest-singletons/deeply-nested-grid-1.html % http://localhost/tests/perf-reftest-singletons/deeply-nested-grid-2.html % http://localhost/tests/perf-reftest-singletons/insert-subtree-not-nth-edge-has-pseudo.html +% http://localhost/tests/perf-reftest-singletons/remove-tons-of-table-rows.html # When modifying this list, please also update build/pgo/index.html (If relevant to profile-guided optimzation). diff --git a/testing/talos/talos/tests/perf-reftest-singletons/remove-tons-of-table-rows.html b/testing/talos/talos/tests/perf-reftest-singletons/remove-tons-of-table-rows.html @@ -0,0 +1,25 @@ +<!doctype html> +<script src="util.js"></script> +<table> + <tbody id="container"> + </tbody> +</table> +<script> +onload = function() { + const kElementCount = 30000; + for (let i = 0; i < kElementCount; ++i) { + let tr = document.createElement("tr"); + let td = tr.appendChild(document.createElement("td")); + td.appendChild(document.createTextNode(i)); + container.appendChild(tr); + container.appendChild(document.createTextNode("\n")); + } + flush_layout(); + perf_start(); + for (let el of document.querySelectorAll("tr")) { + el.style.display = "none"; + } + flush_layout(); + perf_finish(); +}; +</script>