diff options
Diffstat (limited to 'PerformanceTests/Parser/xml-parser.html')
-rw-r--r-- | PerformanceTests/Parser/xml-parser.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/PerformanceTests/Parser/xml-parser.html b/PerformanceTests/Parser/xml-parser.html new file mode 100644 index 0000000..2e507c8 --- /dev/null +++ b/PerformanceTests/Parser/xml-parser.html @@ -0,0 +1,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> |