[Webkit-unassigned] [Bug 189151] New: V8 faster than JSC at String.prototype.toString()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 30 03:37:21 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=189151
Bug ID: 189151
Summary: V8 faster than JSC at String.prototype.toString()
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nickshanks at nickshanks.com
Created attachment 348495
--> https://bugs.webkit.org/attachment.cgi?id=348495&action=review
Screenshot of my results including Firefox
I ran some performance tests at https://jsperf.com/string-object-conversion-to-primitive and found that Chrome is 25% faster than Safari at converting a 32kB String object to a string primitive. Perhaps there is some win that can be achieved by copying whatever they're doing?
My numbers, Safari 11.1.2 (Mac OS 10.11.6):
Object.valueOf() 144,794,835 ± 0.7%
Object.toString() 142,425,187 ± 1.0%
Chrome 68.0.3440:
Object.valueOf() 177,410,422 ± 1.33%
Object.toString() 178,729,042 ± 1.12%
p.s. Safari blows Chrome out of the water with the `+` operator, at almost 100x faster!
--
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/20180830/6a9fc48c/attachment.html>
More information about the webkit-unassigned
mailing list