<?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>47695</bug_id>
          
          <creation_ts>2010-10-14 15:49:54 -0700</creation_ts>
          <short_desc>[Qt] WTR is sloooow</short_desc>
          <delta_ts>2010-10-15 01:27:13 -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>PC</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ossy</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>294422</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-10-14 15:49:54 -0700</bug_when>
    <thetext>Currently WTR is way slower than DRT. One of the reasons is that the timer interval in
the RunUntilConditionLoop (that lives in TestControllerQt.cpp) is too big so we do not detect
that the test had been finished at the web process side as soon as possible. With a 1 millisecond
interval it runs passing tests almost a magnitude faster (I have tried it with LayoutTests/http and
the result was 22.19 seconds against 146.34).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294425</commentid>
    <comment_count>1</comment_count>
      <attachid>70791</attachid>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-10-14 15:55:30 -0700</bug_when>
    <thetext>Created attachment 70791
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294463</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-10-14 16:49:09 -0700</bug_when>
    <thetext>Do other ports have the same timer mechanism? I assume there is no drawback with this patch ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294597</commentid>
    <comment_count>3</comment_count>
      <attachid>70791</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-10-14 23:32:12 -0700</bug_when>
    <thetext>Comment on attachment 70791
proposed patch

Clearing flags on attachment: 70791

Committed r69839: &lt;http://trac.webkit.org/changeset/69839&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294598</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-10-14 23:32:21 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294609</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-10-15 00:02:03 -0700</bug_when>
    <thetext>before the patch: 3684.45s total testing time
after patch landed: 1415.56s total testing time

Thanks for the speedup. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>294634</commentid>
    <comment_count>6</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-10-15 01:27:13 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Do other ports have the same timer mechanism? I assume there is no drawback with this patch ...

They have more direct API for that task. See the implementation of
TestController::runUntil in TestControllerWin.cpp and TestControllerMac.cpp.
If you have an idea about how can we do it more effectively, feel free to
rewrite my stuff ;)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70791</attachid>
            <date>2010-10-14 15:55:30 -0700</date>
            <delta_ts>2010-10-14 23:32:12 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>wtr_slow.diff</filename>
            <type>text/plain</type>
            <size>1209</size>
            <attacher name="Balazs Kelemen">kbalazs</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCBiZjRmZjZjLi5mMWZjZjM4IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTAtMTAt
MTQgIEJhbGF6cyBLZWxlbWVuICA8a2JhbGF6c0B3ZWJraXQub3JnPgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFtRdF0gV1RSIGlzIHNsb29vb3cKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTQ3Njk1CisKKyAg
ICAgICAgKiBXZWJLaXRUZXN0UnVubmVyL3F0L1Rlc3RDb250cm9sbGVyUXQuY3BwOgorICAgICAg
ICBDaGFuZ2UgdGhlIHRpbWVyIGludGVydmFsIG9mIFJ1blVudGlsQ29uZGl0aW9uTG9vcCBmcm9t
CisgICAgICAgIDUwIG1pbGxpc2Vjb25kcyB0byAxIHRvIGF2b2lkIHdhc3RpbmcgdGltZSBhZnRl
ciB0aGUgCisgICAgICAgIHRlc3QgaGFkIGJlZW4gZmluaXNoZWQuCisKIDIwMTAtMTAtMTMgIExl
YW5kcm8gUGVyZWlyYSAgPGxlYW5kcm9AcHJvZnVzaW9uLm1vYmk+CiAKICAgICAgICAgUmV2aWV3
ZWQgYnkgQ3NhYmEgT3N6dHJvZ29uw6FjLgpkaWZmIC0tZ2l0IGEvV2ViS2l0VG9vbHMvV2ViS2l0
VGVz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