<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC] Implement parsing of Async Functions"
   href="https://bugs.webkit.org/show_bug.cgi?id=161409#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC] Implement parsing of Async Functions"
   href="https://bugs.webkit.org/show_bug.cgi?id=161409">bug 161409</a>
              from <span class="vcard"><a class="email" href="mailto:utatane.tea&#64;gmail.com" title="Yusuke Suzuki &lt;utatane.tea&#64;gmail.com&gt;"> <span class="fn">Yusuke Suzuki</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=161409#c6">comment #6</a>)
<span class="quote">&gt; So, experimenting with this a bit, I'm finding that those &quot;expensive
&gt; branches&quot; identified by Yusuke Suzuki can be (mostly) mitigated in the
&gt; benchmarks by moving their contents to never-inlined functions. I guess this
&gt; makes the on-stack allocation for the more commonly executed code smaller,
&gt; and means the only extra work the &quot;commonly executed&quot; code has to do is the
&gt; interned string comparison (testing if a particular string is &quot;async&quot; or
&gt; not), which should be pretty cheap.
&gt; 
&gt; The biggest one of these in the jQuery benchmark is, according to
&gt; Instruments.app, the one in parseStatement(). Uninlining these rare branches
&gt; might be a good way to go, but I'd appreciate a second set of eyes measuring
&gt; that solution using different tools and settings as well.
&gt; 
&gt; Some benchmark runs (just with jquery) with 4 VM runs and 10 inner runs:
&gt; 
&gt; ```
&gt; Collected 40 samples per benchmark/VM, with 4 VM invocations per benchmark.
&gt; Emitted a call to
&gt; gc() between sample measurements. Used 1 benchmark iteration per VM
&gt; invocation for warm-up. Used
&gt; the jsc-specific preciseTime() function to get microsecond-level timing.
&gt; Reporting benchmark
&gt; execution times with 95% confidence intervals in milliseconds.
&gt; 
&gt; 1)
&gt;                          Baseline                  Patched                  
&gt; 
&gt; 
&gt; jquery               6.76557+-0.13436    ?     6.89083+-0.08124       ?
&gt; might be 1.0185x slower
&gt; 
&gt; &lt;geometric&gt;          6.76557+-0.13436    ?     6.89083+-0.08124       ?
&gt; might be 1.0185x slower
&gt; 
&gt; 2)
&gt;                          Baseline                  Patched                  
&gt; 
&gt; 
&gt; jquery               7.06592+-0.09167          7.03025+-0.07808       
&gt; 
&gt; &lt;geometric&gt;          7.06592+-0.09167          7.03025+-0.07808        
&gt; might be 1.0051x faster
&gt; ```
&gt; 
&gt; So, I dunno, that seems like an improvement over the existing regression to
&gt; me.</span >

Great! Did you already upload the updated patch?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>