<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pathological performance on first execution of a function called with mismatched argument count"
   href="https://bugs.webkit.org/show_bug.cgi?id=155551#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pathological performance on first execution of a function called with mismatched argument count"
   href="https://bugs.webkit.org/show_bug.cgi?id=155551">bug 155551</a>
              from <span class="vcard"><a class="email" href="mailto:oliver&#64;apple.com" title="Oliver Hunt &lt;oliver&#64;apple.com&gt;"> <span class="fn">Oliver Hunt</span></a>
</span></b>
        <pre>If i make the function take 0 parameters and use arguments object there's no perf delta either:
function f() { var j = arguments[0]; for (var i = 0 ; i &lt; 500000000; i++) j = (j ?  j * i : 1) ^ (i &amp; j); }; var start = new Date; f(1); var end = new Date; print(&quot;1st: &quot; + (end - start) + &quot;ms&quot;); var start = new Date; f(); var end = new Date; print(&quot;2nd: &quot; + (end - start) + &quot;ms&quot;);
1st: 3915ms
2nd: 4081ms

This behaviour is only occurring if i pass zero parameters in the first call to the function.</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>