[Webkit-unassigned] [Bug 155551] Pathological performance on first execution of a function called with mismatched argument count
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 16 12:57:50 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=155551
--- Comment #6 from Oliver Hunt <oliver at apple.com> ---
Oooh, had a thought and tried passing undefined explicitly:
function f(j) { for (var i = 0 ; i < 500000000; i++) j = (j ? j * i : 1) ^ (i & j); }; var start = new Date; f(undefined); var end = new Date; print("1st: " + (end - start) + "ms"); var start = new Date; f(); var end = new Date; print("2nd: " + (end - start) + "ms");
1st: 4313ms
2nd: 4305ms
Note that there isn't a performance difference here.
The behaviour i'm seeing is specific to the 0 parameter call.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160316/57888298/attachment.html>
More information about the webkit-unassigned
mailing list