Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / BlinkGC / stress-large-deep-DOM.html
blob9477cf85b8f5c9fc1c8ff4b18ef19abe599be76a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Benchmark - Stress Blink GC</title>
5 </head>
6 <body>
7 <script src="../resources/runner.js"></script>
8 <script src="resources/measure-gc.js"></script>
9 <script>
10 var root = document.createElement('div');
12 function makeTrees() {
13 var depth = 5000;
14 var numberOfTrees = 50;
16 var div = document.createElement('div');
17 var current = div;
18 for (var i = 0; i < depth; ++i) {
19 var childDiv = document.createElement('div');
20 current.appendChild(childDiv);
21 current = childDiv;
24 for (var i = 0; i < numberOfTrees; ++i)
25 root.appendChild(div.cloneNode(true));
28 window.onload = function() {
29 makeTrees(root);
30 PerfTestRunner.measureBlinkGCTime({ description: "Stress Blink GC by GCing a large deep DOM" });
32 </script>
33 </body>
34 </html>