Home | History | Annotate | Download | only in Bindings
      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.measureRunsPerSecond({
      9     description: "This benchmark covers undefined DOM attributes that return a null.",
     10     run: function() {
     11         var localDiv = div;
     12         for (var i = 0; i < 100000; i++)
     13             localDiv.firstChild;
     14 }});
     15 </script>
     16 </body>
     17 </html>
     18