diff options
Diffstat (limited to 'testing/talos/talos/tests/perf-reftest-singletons/many-custom-props.html')
-rw-r--r-- | testing/talos/talos/tests/perf-reftest-singletons/many-custom-props.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/talos/talos/tests/perf-reftest-singletons/many-custom-props.html b/testing/talos/talos/tests/perf-reftest-singletons/many-custom-props.html new file mode 100644 index 0000000000..fcebed4b6f --- /dev/null +++ b/testing/talos/talos/tests/perf-reftest-singletons/many-custom-props.html @@ -0,0 +1,18 @@ +<!doctype html> +<script src="util.js"></script> +<body> +<script> +window.onload = function() { + perf_start(); + let s = document.createElement("style"); + s.appendChild(document.createTextNode(`* {`)); + for (let i = 0; i < 100000; ++i) { + s.appendChild(document.createTextNode(`--custom-prop-${i}: ${Math.random()};`)); + } + s.appendChild(document.createTextNode(`}`)); + document.head.appendChild(s); + flush_style(document.body); + perf_finish(); +} +</script> +</body> |