Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(998)

Side by Side Diff: PerformanceTests/Parser/xml-parser.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../resources/runner.js"></script> 3 <script src="../resources/runner.js"></script>
4 <script> 4 <script>
5 var domParser = new DOMParser(); 5 var domParser = new DOMParser();
6 var xmlArray = []; 6 var xmlArray = [];
7 7
8 xmlArray.push('<root>'); 8 xmlArray.push('<root>');
9 for (var i = 0; i < 0x7FFF; ++i) 9 for (var i = 0; i < 0x7FFF; ++i)
10 xmlArray.push('<item attribute1="value1" attribute2="value2" attribute3="val ue3" attribute4="value4" attribute5="value5" />'); 10 xmlArray.push('<item attribute1="value1" attribute2="value2" attribute3="val ue3" attribute4="value4" attribute5="value5" />');
11 xmlArray.push('</root>') 11 xmlArray.push('</root>')
12 var xmlData = xmlArray.join(''); 12 var xmlData = xmlArray.join('');
13 13
14 PerfTestRunner.measureRunsPerSecond({run:function() { 14 PerfTestRunner.measureRunsPerSecond({
15 domParser.parseFromString(xmlData, "text/xml"); 15 description: "Measures performance of the XML parser.",
16 }}); 16 run: function() {
17 domParser.parseFromString(xmlData, "text/xml");
18 }
19 });
17 </script> 20 </script>
18 </body> 21 </body>
OLDNEW
« no previous file with comments | « PerformanceTests/Parser/url-parser.html ('k') | PerformanceTests/ShadowDOM/StyleSheetInsert.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698