[Webkit-unassigned] [Bug 258660] New: private class members are much, much slower then public members
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 29 02:02:58 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258660
Bug ID: 258660
Summary: private class members are much, much slower then
public members
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: scythes.corms_0i at icloud.com
We have noticed that using native private class members is ~95% slower than normal properties. That puts them into the same ballpark as the WeakMap-workaround that's commonly used/emitted today.
https://jsbench.me/0gljcn4wzt/2 is a benchmark that compares
* native privates
* weakmap polyfill privates
* publics
I have tested this with Safari 16.5.1 and latest Tech Preview. Other browsers also show inferior performance but not as dramatic.
--
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/20230629/0e4a7029/attachment.htm>
More information about the webkit-unassigned
mailing list