Comment #3 on issue 1704 by [email protected]: V8 significantly slower than
Firefox and Safari in evalutating Math functions.
http://code.google.com/p/v8/issues/detail?id=1704
The title should be 'V8 significantly slower than Firefox and Safari in
accessing globals'
The V8 times are proportional to the total number of global accesses (Math,
sum, i) which indicates that accessing globals is so slow as to dominate
the time.
The difference between f1 and f1local is that f1 uses global sum and i.
The difference between fl1local and f2local is that f2local
accesses 'Math.sin' once.
The fact that all JS engines are roughly the same for f2local shows that
the calling the function stored at Math.sin is not the issue.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev