[Webkit-unassigned] [Bug 133924] New: Bracket access is significantly slower than property access
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jun 14 23:05:40 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=133924
Summary: Bracket access is significantly slower than property
access
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: barraclough at apple.com, akling at apple.com,
fpizlo at apple.com, mhahnenberg at apple.com
Created an attachment (id=233135)
--> (https://bugs.webkit.org/attachment.cgi?id=233135&action=review)
Microbenchmark
function getByVal(object, property) {
return object[property];
}
function getById(object) {
return object.myProperty;
}
The first function appears to be ~3.5x slower than the second function even if getByVal is always called as getByVal(object, 'myProperty').
It's only 1.5x slower on Chrome 35 and 2.2x slower on Firefox 30.
--
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