Changeset 96531 in webkit
- Timestamp:
- Oct 3, 2011 1:09:25 PM (13 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/ChangeLog
r92696 r96531 1 2011-10-03 Eric Seidel <eric@webkit.org> 2 3 PerformanceTests/Parser/html-parser is only testing parsing of the head element 4 https://bugs.webkit.org/show_bug.cgi?id=69283 5 6 Reviewed by Adam Barth. 7 8 While investigating https://bugs.webkit.org/show_bug.cgi?id=68944 9 I found that the html-parser benchmark was only parsing up to the 10 first script tag per loop! We've fixed this by adding the sandbox 11 tag which will deny all external loads and allow the parser to 12 synchronously continue parsing the entire document to completion 13 (as we had expected it was doing). 14 15 This changes the profile somewhat. Line number counting is much 16 hotter, since we're actually accounting for the parse of the entire 17 document in our sample. 18 19 Total sample time only about doubles, from 1800ms to 3800ms on my machine 20 which is less than I would have expected. 21 22 * Parser/html-parser.html: 23 1 24 2011-08-09 Alexandru Chiculita <achicu@adobe.com> 2 25 -
trunk/PerformanceTests/Parser/html-parser.html
r74824 r96531 9 9 var iframe = document.createElement("iframe"); 10 10 iframe.src = "about:blank"; 11 iframe.style.display = "none"; 11 iframe.style.display = "none"; // Prevent creation of the rendering tree, so we only test HTML parsing. 12 iframe.sandbox = ''; // Prevents loading of external scripts which would otherwise pause the parser. 12 13 document.body.appendChild(iframe); 13 14 iframe.contentDocument.open();
Note: See TracChangeset
for help on using the changeset viewer.