[perf-test] Add 7 micro benchmarks for DOM bindings
[WebKit-https.git] / PerformanceTests / Bindings / undefined-id-getter.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 var div = document.createElement("div");
7
8 PerfTestRunner.runPerSecond({
9     description: "This benchmark covers undefined DOM attributes that return an empty String.",
10     run: function() {
11         var localDiv = div;
12         for (var i = 0; i < 100000; i++)
13             localDiv.id;
14 }});
15 </script>
16 </body>
17 </html>