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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 05:49:21 PDT 2011


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





--- Comment #2 from Victor Grishchenko <victor.grishchenko at gmail.com>  2011-08-23 05:49:21 PST ---
Firefox appears not to have such an issue; Array.join() is x10 faster, String.replace() is just x2 faster (on the same hardware as in "Linux" measurements)

[18:44:27.501] started 27.501ms @ http://localhost/test.html:5
23
[18:44:27.524] composed 27.524ms @ http://localhost/test.html:10
10
[18:44:27.535] joined 27.534ms @ http://localhost/test.html:13
54
[18:44:27.589] replaced 27.588ms 1000000 @ http://localhost/test.html:16

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list