[Webkit-unassigned] [Bug 26014] New: Declaring an unused variable outside an empty loop speeds up the loop
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 25 14:45:45 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26014
Summary: Declaring an unused variable outside an empty loop
speeds up the loop
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: catfish.man at gmail.com
time ./jsc -e "function e() { for (var i = 0; i < 99999999; ++i) { } } e();"
real 0m0.389s
user 0m0.367s
sys 0m0.009s
time ./jsc -e "function e() { var a = 0; for (var i = 0; i < 99999999; ++i) { }
} e();"
real 0m0.325s
user 0m0.312s
sys 0m0.009s
It seems like something has to be going wrong for this to be the case. Using 64
bit trunk jsc, r40951, on a 2GHz Core 2 Duo MacBook.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list