blob: 2b649e8ed9879fbf5b4b8e4df6d3a0e0b3b203e2 [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 distribution (${hostChildren} deep host children)`,
setup: () => {
host = createHostTreeWithDeepComponentChild(hostChildren);
document.querySelector('#parent').appendChild(host);
document.body.offsetLeft;
},
run: () => {
runHostChildrenMutationThenGetDistribution(host, loop);
},
done: () => {
host.remove();
}
});
</script>
</body>
</html>