Changeset 96531 in webkit


Ignore:
Timestamp:
Oct 3, 2011 1:09:25 PM (13 years ago)
Author:
eric@webkit.org
Message:

PerformanceTests/Parser/html-parser is only testing parsing of the head element
https://bugs.webkit.org/show_bug.cgi?id=69283

Reviewed by Adam Barth.

While investigating https://bugs.webkit.org/show_bug.cgi?id=68944
I found that the html-parser benchmark was only parsing up to the
first script tag per loop! We've fixed this by adding the sandbox
tag which will deny all external loads and allow the parser to
synchronously continue parsing the entire document to completion
(as we had expected it was doing).

This changes the profile somewhat. Line number counting is much
hotter, since we're actually accounting for the parse of the entire
document in our sample.

Total sample time only about doubles, from 1800ms to 3800ms on my machine
which is less than I would have expected.

  • Parser/html-parser.html:
Location:
trunk/PerformanceTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r92696 r96531  
     12011-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
    1242011-08-09  Alexandru Chiculita  <achicu@adobe.com>
    225
  • trunk/PerformanceTests/Parser/html-parser.html

    r74824 r96531  
    99    var iframe = document.createElement("iframe");
    1010    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.
    1213    document.body.appendChild(iframe);
    1314    iframe.contentDocument.open();
Note: See TracChangeset for help on using the changeset viewer.