Bug 1554571 - Part 4: Add perf-reftest singleton for anonymous content style caching. r=emilio

On my machine this test takes ~5200 ms with the anonymous content style
caching pref disabled, and ~1000 ms with it enabled.

Differential Revision: https://phabricator.services.mozilla.com/D36139

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Cameron McCormack 2019-06-27 00:25:05 +00:00
parent 8538a62557
commit 744961c65a
2 changed files with 17 additions and 3 deletions

View File

@ -13,9 +13,7 @@
% http://localhost/tests/perf-reftest-singletons/tiny-traversal-singleton.html
% http://localhost/tests/perf-reftest-singletons/nth-index-1.html
% http://localhost/tests/perf-reftest-singletons/nth-index-2.html
% http://localhost/tests/perf-reftest-singletons/bidi-resolution-1.html
% http://localhost/tests/perf-reftest-singletons/id-getter-1.html
% http://localhost/tests/perf-reftest-singletons/id-getter-2.html
% http://localhost/tests/perf-reftest-singletons/id-getter-3.html
@ -23,5 +21,5 @@
% http://localhost/tests/perf-reftest-singletons/id-getter-5.html
% http://localhost/tests/perf-reftest-singletons/id-getter-6.html
% http://localhost/tests/perf-reftest-singletons/id-getter-7.html
% http://localhost/tests/perf-reftest-singletons/abspos-reflow-1.html
% http://localhost/tests/perf-reftest-singletons/scrollbar-styles-1.html

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<style>
div { overflow: auto; }
</style>
<script src="util.js"></script>
<script>
window.onload = function() {
let root = document.createElement("div");
root.appendChild(build_dom(10000, "div"));
document.body.appendChild(root);
perf_start();
flush_layout(root);
perf_finish();
};
</script>
<body></body>