Convert CSS and Parser tests to runs/s tests
[WebKit.git] / PerformanceTests / Parser / xml-parser.html
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('<item attribute1="value1" attribute2="value2" attribute3="value3" attribute4="value4" attribute5="value5" />');
11 xmlArray.push('</root>')
12 var xmlData = xmlArray.join('');
13
14 PerfTestRunner.runPerSecond({run:function() {
15     domParser.parseFromString(xmlData, "text/xml");
16 }});
17 </script>
18 </body>