Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Bindings / id-getter.html
blobcc1046e4c88e4888162991f9008bcdc2d54f9b39
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="foo"></div>
5 <script src="../resources/runner.js"></script>
6 <script>
7 var div = document.getElementById("foo");
9 PerfTestRunner.measureRunsPerSecond({
10 description: "This benchmark covers 'element.property' in Dromaeo/dom-attr.html, 'innerHTML' in Dromaeo/dom-modify.html, and other DOM attributes that return a String.",
11 run: function() {
12 var localDiv = div;
13 for (var i = 0; i < 100000; i++)
14 localDiv.id;
15 }});
16 </script>
17 </body>
18 </html>