Home | History | Annotate | Download | only in Parser
      1 <!DOCTYPE html>
      2 <body>
      3 <script src="../resources/runner.js"></script>
      4 <script>
      5 var domParser = new DOMParser();
      6 var xmlArray = [];
      7 
      8 xmlArray.push('<root>');
      9 for (var i = 0; i < 0x7FFF; ++i)
     10     xmlArray.push('');
     11 xmlArray.push('')
     12 var xmlData = xmlArray.join('');
     13 
     14 PerfTestRunner.measureRunsPerSecond({run:function() {
     15     domParser.parseFromString(xmlData, "text/xml");
     16 }});
     17 </script>
     18 </body>
     19