Speedometer 2.0: Vanilla JS test doesn't mark all todo items as completed
[WebKit-https.git] / PerformanceTests / Bindings / get-elements-by-tag-name.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div></div>
5 <script src="../resources/runner.js"></script>
6 <script>
7 PerfTestRunner.measureRunsPerSecond({
8     description: "This benchmark covers 'getElementsByTagName (not in document)', 'getElementsByTagName', 'getElementsByName (not in document)' and 'getElementsByName' in Dromaeo/dom-query.html, and other DOM methods that return a NodeList.",
9     run: function() {
10         for (var i = 0; i < 50000; i++)
11             document.getElementsByTagName("div");
12 }});
13 </script>
14 </body>
15 </html>