<?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>133876</bug_id>
          
          <creation_ts>2014-06-13 13:07:02 -0700</creation_ts>
          <short_desc>REGRESSION(r169703): Memory usage (JSHeap) on all performance tests got ~50% worse</short_desc>
          <delta_ts>2014-06-18 10:55:53 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://perf.webkit.org/#mode=charts&amp;chartList=[[%22efl%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22gtk%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-lion%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mavericks%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mountainlion%22%2C%22Animation%2Fballs%3AJSHeap%22]]</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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>dbates</cc>
    
    <cc>ggaren</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>kling</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>oliver</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1015500</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-06-13 13:07:02 -0700</bug_when>
    <thetext>Some of the revisions between [r169699-169710] made a significant performance regression on Animation/balls:JSHeap

Mac-MountainLion: 33.98% worse
Mac-Mavericks:    14.18% worse
EFL:               9.52% worse
GTK:              56.66% worse



WebKit: http://trac.webkit.org/log/?rev=169710&amp;stop_rev=169699&amp;verbose=on


The graphs are here: https://perf.webkit.org/#mode=charts&amp;chartList=[[%22efl%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22gtk%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-lion%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mavericks%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mountainlion%22%2C%22Animation%2Fballs%3AJSHeap%22]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1015501</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-06-13 13:11:16 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Some of the revisions between [r169699-169710] made a significant performance regression on Animation/balls:JSHeap
&gt; 
&gt; Mac-MountainLion: 33.98% worse
&gt; Mac-Mavericks:    14.18% worse
&gt; EFL:               9.52% worse
&gt; GTK:              56.66% worse
&gt; 
&gt; 
&gt; 
&gt; WebKit: http://trac.webkit.org/log/?rev=169710&amp;stop_rev=169699&amp;verbose=on
&gt; 
&gt; 
&gt; The graphs are here: https://perf.webkit.org/#mode=charts&amp;chartList=[[%22efl%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22gtk%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-lion%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mavericks%22%2C%22Animation%2Fballs%3AJSHeap%22]%2C[%22mac-mountainlion%22%2C%22Animation%2Fballs%3AJSHeap%22]]

Let&apos;s see if this link works: https://perf.webkit.org/#mode=charts&amp;chartList=%5B%5B%22efl%22%2C%22Animation%2Fballs%3AJSHeap%22%5D%2C%5B%22gtk%22%2C%22Animation%2Fballs%3AJSHeap%22%5D%2C%5B%22mac-lion%22%2C%22Animation%2Fballs%3AJSHeap%22%5D%2C%5B%22mac-mavericks%22%2C%22Animation%2Fballs%3AJSHeap%22%5D%2C%5B%22mac-mountainlion%22%2C%22Animation%2Fballs%3AJSHeap%22%5D%5D

Otherwise select: &quot;Animation&quot; / &quot;balls:JSHeap&quot; / &quot;All platforms&quot; and click on &quot;Add chart&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1015502</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-06-13 13:18:42 -0700</bug_when>
    <thetext>There are more tests affected, for example


Bindings/append-child:JSHeap https://perf.webkit.org/#mode=charts&amp;chartList=%5B%5B%22efl%22%2C%22Bindings%2Fappend-child%3AJSHeap%22%5D%2C%5B%22gtk%22%2C%22Bindings%2Fappend-child%3AJSHeap%22%5D%2C%5B%22mac-lion%22%2C%22Bindings%2Fappend-child%3AJSHeap%22%5D%2C%5B%22mac-mavericks%22%2C%22Bindings%2Fappend-child%3AJSHeap%22%5D%2C%5B%22mac-mountainlion%22%2C%22Bindings%2Fappend-child%3AJSHeap%22%5D%5D


Bindings/create-element:JSHeap https://perf.webkit.org/#mode=charts&amp;chartList=%5B%5B%22efl%22%2C%22Bindings%2Fcreate-element%3AJSHeap%22%5D%2C%5B%22gtk%22%2C%22Bindings%2Fcreate-element%3AJSHeap%22%5D%2C%5B%22mac-lion%22%2C%22Bindings%2Fcreate-element%3AJSHeap%22%5D%2C%5B%22mac-mavericks%22%2C%22Bindings%2Fcreate-element%3AJSHeap%22%5D%2C%5B%22mac-mountainlion%22%2C%22Bindings%2Fcreate-element%3AJSHeap%22%5D%5D


Bindings/document-implementation:JSHeap https://perf.webkit.org/#mode=charts&amp;chartList=%5B%5B%22efl%22%2C%22Bindings%2Fdocument-implementation%3AJSHeap%22%5D%2C%5B%22gtk%22%2C%22Bindings%2Fdocument-implementation%3AJSHeap%22%5D%2C%5B%22mac-lion%22%2C%22Bindings%2Fdocument-implementation%3AJSHeap%22%5D%2C%5B%22mac-mavericks%22%2C%22Bindings%2Fdocument-implementation%3AJSHeap%22%5D%2C%5B%22mac-mountainlion%22%2C%22Bindings%2Fdocument-implementation%3AJSHeap%22%5D%5D


etc...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016429</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-06-18 03:48:17 -0700</bug_when>
    <thetext>I have bisected the interval and got r169703 as the revision that caused the regression.

You can check here the bisection I did: http://people.igalia.com/clopez/wk133876/PerformanceTestsResults.html
Click on memory at the top left.

I only tested with one Performance test (Bindings/document-implementation.html) to do it faster, but all the other tests would give the same result related to JSHeap memory usage according to perf.webkit.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016488</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2014-06-18 10:53:21 -0700</bug_when>
    <thetext>It looks like the absolute size of the regression is 60kB - 100kB. Is that right? If so, I think those high percentages just indicate that the test doesn&apos;t use much JS memory -- not that something major has changed.

In a test that does use a lot of JS memory, I would expect the memory impact of &lt;http://trac.webkit.org/changeset/169703&gt; to be much lower, percentage-wise, since one prototype is typically used by many client objects, making prototype memory a small fraction of heap memory.

I think we can accept this delta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1016491</commentid>
    <comment_count>5</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-06-18 10:55:53 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; It looks like the absolute size of the regression is 60kB - 100kB. Is that right? If so, I think those high percentages just indicate that the test doesn&apos;t use much JS memory -- not that something major has changed.
&gt; 
&gt; In a test that does use a lot of JS memory, I would expect the memory impact of &lt;http://trac.webkit.org/changeset/169703&gt; to be much lower, percentage-wise, since one prototype is typically used by many client objects, making prototype memory a small fraction of heap memory.
&gt; 
&gt; I think we can accept this delta.

Indeed. There is clearly a space/time tradeoff here, and I think 100kB is well within the acceptable range.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>