Regression(r236613): Parser/html-parser.html performance test is failing
[WebKit-https.git] / PerformanceTests / Bindings / update-name-getter.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <img id="foo" name="bar">
5 <script src="../resources/runner.js"></script>
6 <script>
7
8 var imageElement = document.querySelector("img");
9
10 imageElement.id = "foo";
11
12 PerfTestRunner.measureRunsPerSecond({
13     description: "This benchmark covers 'getElementById' in Dromaeo/dom-query.html, and other DOM methods that return a Node object.",
14     run: function() {
15         for (var i = 0; i < 100000; i++)
16             imageElement.id =  i % 2 ? "foo1" : "foo0";
17 }});
18 </script>
19 </body>
20 </html>