<?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>176355</bug_id>
          
          <creation_ts>2017-09-05 01:41:14 -0700</creation_ts>
          <short_desc>Speedometer 2.0: Delete ToDo items in reversed order for Inferno suite</short_desc>
          <delta_ts>2017-09-08 00:54:21 -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>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=172341</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=176586</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>172339</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shiyu Zhang">shiyu.zhang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>addyo</cc>
    
    <cc>lforschler</cc>
    
    <cc>pan.deng</cc>
    
    <cc>rniwa</cc>
    
    <cc>tianyou.li</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1345383</commentid>
    <comment_count>0</comment_count>
      <attachid>319886</attachid>
    <who name="Shiyu Zhang">shiyu.zhang</who>
    <bug_when>2017-09-05 01:41:14 -0700</bug_when>
    <thetext>Created attachment 319886
Delete todo-items in reversed order for inferno suite

Inferno case shows a strange behavior when deleting items. The deleteButtons array will be dynamically updated once one todo-item is deleted. For example, after deleteButtons[i].click() executed,  deleteButtons[i+1] was copied to deleteButtons[i], deleteButtons[i+2] was copied to deleteButtons[i+1] ...

This behavior caused the bug of &quot;don&apos;t delete all ToDo items&quot; in https://bugs.webkit.org/show_bug.cgi?id=172341. I tried to delete items in reversed order for Inferno case as the patch did. All the todo-items can be deleted and the results on my PC (Ubuntu Chrome R60) showed 4x score improvement for Inferno case.  I think it’s unusual to dynamically update deleteButtons array in the Inferno use case. Maybe we can walk around this by deleting items in reversed order for Inferno case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1345784</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-09-05 20:18:53 -0700</bug_when>
    <thetext>No, we don&apos;t want to make each test case faster like this. The whole point of this benchmark is to have browser engines optimize DOM API, not measure what they&apos;re already fast at.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>319886</attachid>
            <date>2017-09-05 01:41:14 -0700</date>
            <delta_ts>2017-09-05 01:41:14 -0700</delta_ts>
            <desc>Delete todo-items in reversed order for inferno suite</desc>
            <filename>inferno-bug.pat</filename>
            <type>text/plain</type>
            <size>727</size>
            <attacher name="Shiyu Zhang">shiyu.zhang</attacher>
            
              <data encoding="base64">SW5kZXg6IFBlcmZvcm1hbmNlVGVzdHMvU3BlZWRvbWV0ZXIvcmVzb3VyY2VzL3Rlc3RzLmpzCj09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KLS0tIFBlcmZvcm1hbmNlVGVzdHMvU3BlZWRvbWV0ZXIvcmVzb3VyY2VzL3Rlc3Rz
LmpzCShyZXZpc2lvbiAyMjE2MTIpCisrKyBQZXJmb3JtYW5jZVRlc3RzL1NwZWVkb21ldGVyL3Jl
c291cmNlcy90ZXN0cy5qcwkod29ya2luZyBjb3B5KQpAQCAtNDM3LDggKzQzNyw4IEBACiAgICAg
ICAgIH0pLAogICAgICAgICBuZXcgQmVuY2htYXJrVGVzdFN0ZXAoJ0RlbGV0aW5nSXRlbXMnLCBm
dW5jdGlvbiAocGFyYW1zLCBjb250ZW50V2luZG93LCBjb250ZW50RG9jdW1lbnQpIHsKICAgICAg
ICAgICAgIHZhciBkZWxldGVCdXR0b25zID0gY29udGVudERvY3VtZW50LnF1ZXJ5U2VsZWN0b3JB
bGwoJy5kZXN0cm95Jyk7Ci0gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IG51bWJlck9m
SXRlbXNUb0FkZDsgaSsrKQotICAgICAgICAgICAgICAgIGNvbnRlbnREb2N1bWVudC5xdWVyeVNl
bGVjdG9yKCcuZGVzdHJveScpLmNsaWNrKCk7CisgICAgICAgICAgICBmb3IgKHZhciBpID0gbnVt
YmVyT2ZJdGVtc1RvQWRkLTE7IGkgPj0gMDsgaS0tKQorICAgICAgICAgICAgICAgIGRlbGV0ZUJ1
dHRvbnNbaV0uY2xpY2soKTsKICAgICAgICAgfSksCiAgICAgXQogfSk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>