[Webkit-unassigned] [Bug 240984] [JSC] Promise/async is about 6x slower than v8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 21:06:38 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240984

--- Comment #1 from Jarred Sumner <jarred at jarredsumner.com> ---
If we look at V8's implementation

We can see that they don't use a generic JSC::JSMicrotask-like type with a JS implementation. Instead, they have specific types for each job.

https://github.com/v8/v8/blob/f32335fea75b7bde495e0800d7f7349253f81a7c/src/builtins/builtins-microtask-queue-gen.cc#L118


They also implement an optimization for resolving promises that skips allocating a temporary promise.

https://github.com/v8/v8/blob/f32335fea75b7bde495e0800d7f7349253f81a7c/src/builtins/promise-jobs.tq#L15

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220527/cee8230a/attachment.htm>


More information about the webkit-unassigned mailing list