4 <script type=
"text/javascript" src=
"../resources/runner.js"></script>
13 var numDivsInHost
= 1000;
18 var nDivs
= numDivsInHost
;
20 for (var i
= 0; i
< nDivs
; ++i
) {
21 var div
= document
.createElement('div');
22 div
.appendChild(document
.createTextNode('div' + i
));
23 host
.appendChild(div
);
26 window
.content
= document
.createElement('content');
27 var shadowRoot
= host
.createShadowRoot();
28 shadowRoot
.appendChild(content
);
33 var host
= document
.getElementById('host');
34 var content
= window
.content
;
35 var nLoops
= window
.nLoops
;
37 var div
= document
.createElement('div');
38 for (var i
= 0; i
< nLoops
; ++i
) {
39 host
.appendChild(div
);
40 host
.removeChild(div
);
41 content
.getDistributedNodes();
47 wrapper
.innerHTML
= '';
52 PerfTestRunner
.measureRunsPerSecond({
53 description
: "Measure Distribution (without layout time) with a lot of host children",