<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Arrow function syntax. Emit loading&putting this/super only if they are used in arrow function"
href="https://bugs.webkit.org/show_bug.cgi?id=153981#c20">Comment # 20</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Arrow function syntax. Emit loading&putting this/super only if they are used in arrow function"
href="https://bugs.webkit.org/show_bug.cgi?id=153981">bug 153981</a>
from <span class="vcard"><a class="email" href="mailto:sbarati@apple.com" title="Saam Barati <sbarati@apple.com>"> <span class="fn">Saam Barati</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=153981#c17">comment #17</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=153981#c3">comment #3</a>)
> > Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=271327&action=diff" name="attach_271327" title="Patch">attachment 271327</a> <a href="attachment.cgi?id=271327&action=edit" title="Patch">[details]</a></span>
> > Patch
> >
> > View in context:
> > <a href="https://bugs.webkit.org/attachment.cgi?id=271327&action=review">https://bugs.webkit.org/attachment.cgi?id=271327&action=review</a>
> >
> > LGTM, just a few design suggestions and renaming suggestions.
> > Have you run perf numbers?
> >
>
> I think it quite good figures for arrow function:
> before_patch
> after_patch
> arrowfunction-call-in-class-constructor 300.1710+-13.5061 ^
> 191.4837+-4.5846 ^ definitely 1.5676x faster
> arrowfunction-call-in-class-method 91.2163+-7.7129 ^
> 29.3135+-10.2887 ^ definitely 3.1118x faster
> arrowfunction-call-in-function 96.5411+-31.9533 ^
> 19.6813+-1.5141 ^ definitely 4.9052x faster
> arrowfunction-call 33.9300+-3.3111 ^
> 27.0056+-0.9594 ^ definitely 1.2564x faster</span >
Nice.
It would be worthwhile to open a bug to rewrite the deltablue benchmark
(or some other benchmark that tests function calling) to use
arrow functions everywhere. That way we can compare that performance
to the performance of just using ordinary functions. And we can track
performance in arrow functions w/ that benchmark.</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>