blob: 9606f91a1d050a54b7ba5835706622edaea9c8cf [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../resources/runner.js"></script>
<script type="text/javascript" src="./v1-common.js"></script>
</head>
<body>
<div id="parent"></div>
<script>
const hostChildren = 10;
const loop = 10;
let host;
PerfTestRunner.measureTime({
description: `Measure layout (${hostChildren} deep host children)`,
setup: () => {
host = createHostTreeWithDeepComponentChild(hostChildren);
document.querySelector('#parent').appendChild(host);
document.body.offsetLeft;
},
run: () => {
runHostChildrenMutationThenLayout(host, loop);
},
done: () => {
host.remove();
}
});
</script>
</body>
</html>