blob: f15cbf1c82bf4f94142b410166ba7344dd7d4eac [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} shallow host children)`,
setup: () => {
host = createHostTree(hostChildren);
document.querySelector('#parent').appendChild(host);
},
run: () => {
runHostChildrenMutationThenGetDistribution(host, loop);
},
done: () => {
host.remove();
}
});
</script>
</body>
</html>