[Webkit-unassigned] [Bug 66765] Performance of String.replace(/regex/g, string) is shockingly low

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 21 13:55:37 PDT 2022


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

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlip.792 at gmail.com

--- Comment #6 from Ahmad Saleem <zlip.792 at gmail.com> ---
Based on 'a better version of the test case':

*** Safari 15.6 on macOS 12.6 ***

1mln char array composed in 7ms
array joined in 11ms
1mln symbol string: all symbols replaced in 28ms

*** Chrome Canary 105 ***

1mln char array composed in 13ms
attachment.cgi?id=104830:17 array joined in 18ms
attachment.cgi?id=104830:18 1mln symbol string: all symbols replaced in 44ms 

*** Firefox Nightly 104 ***

1mln char array composed in 14ms
array joined in 3m
1mln symbol string: all symbols replaced in 52ms 

______________

I think Safari is the latest among all browser except in array joined case compared to Firefox Nightly.

Is something further required here? Thanks!

-- 
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/20220721/ea73201a/attachment.htm>


More information about the webkit-unassigned mailing list