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