blob: 0944d4ae5a97c7def7d2505ca50d768359f8e3f0 [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 = 100;
const loop = 10;
let host;
PerfTestRunner.measureTime({
description: `Measure distribution (${hostChildren} shallow host children)`,
setup: () => {
host = createHostTree(hostChildren);
document.querySelector('#parent').appendChild(host);
},
run: () => {
runHostChildrenMutationThenGetDistribution(host, loop);
},
done: () => {
host.remove();
}
});
</script>
</body>
</html>