<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>110876</bug_id>
          
          <creation_ts>2013-02-26 05:48:42 -0800</creation_ts>
          <short_desc>Multiple html5lib Layout Tests are slow since r144032</short_desc>
          <delta_ts>2013-03-14 14:41:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>111389</dependson>
          <blocked>112381</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Vsevolod Vlasov">vsevik</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>alancutter</cc>
    
    <cc>dcarney</cc>
    
    <cc>eric</cc>
    
    <cc>kbr</cc>
    
    <cc>rafaelw</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>841928</commentid>
    <comment_count>0</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-26 05:48:42 -0800</bug_when>
    <thetext>Multiple html5lib Layout Tests are timing out on chromium since r144032

html5lib/generated/run-doctype01-data.html
html5lib/generated/run-domjs-unsafe-data.html
html5lib/generated/run-entities01-data.html
html5lib/generated/run-plain-text-unsafe-data.html
html5lib/generated/run-scriptdata01-data.html
html5lib/generated/run-template-data.html
html5lib/generated/run-tests1-data.html
html5lib/generated/run-tests10-data.html
html5lib/generated/run-tests16-data.html
html5lib/generated/run-tests19-data.html
html5lib/generated/run-tests2-data.html
html5lib/generated/run-tests20-data.html
html5lib/generated/run-tests6-data.html
html5lib/generated/run-tests7-data.html
html5lib/generated/run-tests9-data.html
html5lib/generated/run-webkit01-data.html

Caused by http://trac.webkit.org/changeset/144032/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>841932</commentid>
    <comment_count>1</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-26 05:54:11 -0800</bug_when>
    <thetext>Marked as flaky: http://trac.webkit.org/changeset/144050</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842217</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-02-26 11:31:00 -0800</bug_when>
    <thetext>These should just be marked as slow.  They complete fine for me on my linux machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842813</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-02-27 01:04:19 -0800</bug_when>
    <thetext>I&apos;m sure we could look at ways to improve the data: url harness for this test to not be so slow.  But it&apos;s likely these tests will just be marked as &quot;slow&quot; for the forseeable future.   What they test is extremely valuable. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842816</commentid>
    <comment_count>4</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-27 01:05:15 -0800</bug_when>
    <thetext>Marked as slow http://trac.webkit.org/changeset/144156</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842939</commentid>
    <comment_count>5</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-27 04:38:26 -0800</bug_when>
    <thetext>Some of them still fail when marked as slow, some html5lib/ started failing when others were made slow.
I am going to add more information in this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842940</commentid>
    <comment_count>6</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-27 04:42:11 -0800</bug_when>
    <thetext>These tests are timing out even when marked as slow: 

html5lib/generated/run-entities01-data.html
html5lib/generated/run-template-data.html
html5lib/generated/run-tests1-data.html
html5lib/generated/run-tests10-data.html
html5lib/generated/run-tests16-data.html
html5lib/generated/run-tests19-data.html

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=html5lib%2Fgenerated%2Frun-entities01-data.html%2Chtml5lib%2Fgenerated%2Frun-template-data.html%2Chtml5lib%2Fgenerated%2Frun-tests1-data.html%2Chtml5lib%2Fgenerated%2Frun-tests10-data.html%2Chtml5lib%2Fgenerated%2Frun-tests16-data.html%2Chtml5lib%2Fgenerated%2Frun-tests19-data.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842941</commentid>
    <comment_count>7</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-27 04:42:25 -0800</bug_when>
    <thetext>Updated expectations: http://trac.webkit.org/changeset/144171</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>842946</commentid>
    <comment_count>8</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2013-02-27 04:51:32 -0800</bug_when>
    <thetext>These are also failing:

html5lib/generated/run-tests10-write.html
html5lib/generated/run-tests16-write.html
html5lib/generated/run-tests19-write.html

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=html5lib%2Fgenerated%2Frun-tests10-write.html%2Chtml5lib%2Fgenerated%2Frun-tests16-write.html%2Chtml5lib%2Fgenerated%2Frun-tests19-write.html

Updated expectations: http://trac.webkit.org/changeset/144172</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>846956</commentid>
    <comment_count>9</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-03-04 15:54:27 -0800</bug_when>
    <thetext>Marked all html5lib/generated as crashing here:

http://trac.webkit.org/changeset/144692

Note that I removed all the more specific expectations in this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847033</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-04 16:52:44 -0800</bug_when>
    <thetext>Profiling an individual test, you can see parts of WebCore working.  But profiling all the tests in aggregate, seems to show all our time being spent in V8 creating the window object each time we call document.open(). :)

+   6.69%  DumpRenderTree  [kernel.kallsyms]            [k] 0xffffffff8103b51a
+   4.09%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Scanner::ScanIdentifierOrKeyword()
+   2.33%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Scanner::Scan()
+   1.63%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Scanner::Next()
+   1.54%  DumpRenderTree  DumpRenderTree               [.] v8::internal::RelocIterator::next()
+   1.48%  DumpRenderTree  DumpRenderTree               [.] v8::internal::TemplateHashMapImpl&lt;v8::internal::ZoneAllocationPolicy&gt;::Lookup(void*, unsigne
+   1.38%  DumpRenderTree  DumpRenderTree               [.] v8::internal::DescriptorArray::Append(v8::internal::Descriptor*)
+   1.33%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Parser::ParseBinaryExpression(int, bool, bool*)
+   1.25%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Parser::ParseAssignmentExpression(bool, bool*)
+   1.23%  DumpRenderTree  perf-16889.map               [.] 0xf48aab3592e
+   1.23%  DumpRenderTree  DumpRenderTree               [.] v8::internal::SymbolTable::LookupOneByteSymbol(v8::internal::Vector&lt;unsigned char const&gt;, v8
+   1.17%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Zone::New(int)
+   1.09%  DumpRenderTree  DumpRenderTree               [.] v8::internal::Parser::ParsePrimaryExpression(bool*)
+   1.04%  DumpRenderTree  DumpRenderTree               [.] v8::internal::FlexibleBodyVisitor&lt;v8::internal::MarkCompactMarkingVisitor, v8::internal::Fix
+   0.99%  DumpRenderTree  [unknown]                    [.] 0xf48aaa5ecb2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847037</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-04 16:55:45 -0800</bug_when>
    <thetext>I&apos;m using bug 111384 to check the perf of these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847072</commentid>
    <comment_count>12</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-04 17:21:12 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; Profiling an individual test, you can see parts of WebCore working.  But profiling all the tests in aggregate, seems to show all our time being spent in V8 creating the window object each time we call document.open(). :)

After further investigation, this V8 start-up time is dominant only in the data url versions of the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847073</commentid>
    <comment_count>13</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-04 17:22:36 -0800</bug_when>
    <thetext>But it is *so* dominant, that it pushes the top symbol from the write versions down to &lt; 1% of total time. :)

The write() versions only create/load 1 iframe (repeatedly calling open(), write(), end() on said iframe), the data versions set the same iframe to a different src=data: url for each subtest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847074</commentid>
    <comment_count>14</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-04 17:23:20 -0800</bug_when>
    <thetext>The crashes which rafael is seeing only seem to occur on mac/win.  I&apos;m not able to repro them on linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847492</commentid>
    <comment_count>15</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-05 02:48:02 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; Marked all html5lib/generated as crashing here:
&gt; 
&gt; http://trac.webkit.org/changeset/144692
&gt; 
&gt; Note that I removed all the more specific expectations in this patch.

Thanks.  I think the crashes are likely some side-effect of the way we&apos;re timing out.  Since we&apos;re only seeing these troubles on Debug, I am going to post a patch to Skip all of these tests on Debug until the V8 per-document boot time is faster.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847554</commentid>
    <comment_count>16</comment_count>
      <attachid>191465</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-05 04:25:32 -0800</bug_when>
    <thetext>Created attachment 191465
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847920</commentid>
    <comment_count>17</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-03-05 12:34:05 -0800</bug_when>
    <thetext>lgtm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847922</commentid>
    <comment_count>18</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-05 12:34:59 -0800</bug_when>
    <thetext>I filed a v8 bug as well https://code.google.com/p/v8/issues/detail?id=2567</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847990</commentid>
    <comment_count>19</comment_count>
      <attachid>191465</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-05 13:16:19 -0800</bug_when>
    <thetext>Comment on attachment 191465
Patch

Clearing flags on attachment: 191465

Committed r144807: &lt;http://trac.webkit.org/changeset/144807&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847991</commentid>
    <comment_count>20</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-05 13:16:23 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852040</commentid>
    <comment_count>21</comment_count>
    <who name="Alan Cutter">alancutter</who>
    <bug_when>2013-03-10 21:58:40 -0700</bug_when>
    <thetext>The run-tests16-data.html test has been timing out on the Chromium Linux release build now.
http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r144809%20(45627)/results.html

Should this test be marked as flaky in release as well given a V8 issue exists for it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852050</commentid>
    <comment_count>22</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-10 22:30:01 -0700</bug_when>
    <thetext>(In reply to comment #21)
&gt; The run-tests16-data.html test has been timing out on the Chromium Linux release build now.
&gt; http://build.webkit.org/results/Chromium%20Linux%20Release%20(Tests)/r144809%20(45627)/results.html
&gt; 
&gt; Should this test be marked as flaky in release as well given a V8 issue exists for it?

That&apos;s unfortunate.  Yes, I expect some of the data- tests with lots of subtests will hit the timeout.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191465</attachid>
            <date>2013-03-05 04:25:32 -0800</date>
            <delta_ts>2013-03-05 13:16:19 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-110876-20130305042155.patch</filename>
            <type>text/plain</type>
            <size>2114</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ0NzQxCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggY2QxYmQyOTY2YTI2NGRlOWJjOTIw
YzNlOTRjMzI3YjI5NDUyMDMwYS4uMjc2NzY2NjVhYzU1MGEyYmUxYjFhYjdkZWY1NzgxMDQ4MjJk
ZWI3YSAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDIxIEBACisyMDEzLTAzLTA1ICBFcmljIFNlaWRlbCAgPGVy
aWNAd2Via2l0Lm9yZz4KKworICAgICAgICBNdWx0aXBsZSBodG1sNWxpYiBMYXlvdXQgVGVzdHMg
YXJlIHNsb3cgc2luY2UgcjE0NDAzMgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTEwODc2CisKKyAgICAgIC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