Add loopsPerRun option to Parser performance test runner
[WebKit-https.git] / PerformanceTests / Parser / xml-parser.html
1 <!DOCTYPE html>
2 <body>
3 <pre id="log"></pre>
4 <script src="resources/runner.js"></script>
5 <script>
6 var domParser = new DOMParser();
7 var xmlArray = [];
8
9 xmlArray.push('<root>');
10 for (var i = 0; i < 0x7FFF; ++i)
11     xmlArray.push('<item attribute1="value1" attribute2="value2" attribute3="value3" attribute4="value4" attribute5="value5" />');
12 xmlArray.push('</root>')
13 var xmlData = xmlArray.join('');
14
15 start(20, function() {
16     domParser.parseFromString(xmlData, "text/xml");
17 });
18 </script>
19 </body>