summaryrefslogtreecommitdiffstats
path: root/PerformanceTests/Parser/xml-parser.html
blob: 2e507c808e8138b0b28f2446b0819346a82014e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<body>
<pre id="log"></pre>
<script src="resources/runner.js"></script>
<script>
var domParser = new DOMParser();
var xmlArray = [];

xmlArray.push('<root>');
for (var i = 0; i < 0x7FFF; ++i)
    xmlArray.push('<item attribute1="value1" attribute2="value2" attribute3="value3" attribute4="value4" attribute5="value5" />');
xmlArray.push('</root>')
var xmlData = xmlArray.join('');

start(20, function() {
    domParser.parseFromString(xmlData, "text/xml");
});
</script>
</body>