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