4 <script src=
"../resources/runner.js"></script>
8 wrapper
= document
.createElement("div");
9 for (i
= 0; i
< 1000; ++i
) {
10 var child
= document
.createElement("div");
11 for (j
= 0; j
< 1000; ++j
) {
12 var grandChild
= document
.createElement("div");
13 child
.appendChild(grandChild
);
15 wrapper
.appendChild(child
);
17 document
.body
.appendChild(wrapper
);
21 wrapper
.style
.display
= "block";
22 PerfTestRunner
.forceLayoutOrFullFrame();
28 var now
= PerfTestRunner
.now();
30 wrapper
.style
.display
= "none";
31 PerfTestRunner
.forceLayoutOrFullFrame();
33 return PerfTestRunner
.now() - now
;
38 PerfTestRunner
.measureTime({run
: runTest
, description
: "This benchmark checks the time spend in detaching an tree." });