Closed
Bug 602132
Opened 15 years ago
Closed 13 years ago
Consider self-hosting Array.forEach
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 784294
People
(Reporter: bzbarsky, Unassigned)
References
Details
Attachments
(1 file)
1.86 KB,
text/plain
|
Details |
See the attached code. Running that with -m shows a slight speedup of the self-hosted version over the native version (modulo bug 602129). Running with -j shows a significant speedup (order of 50% faster). That's even with the JM gatling gun patch applied. The only caveat is I hacked in a "fix" for bug
![]() |
Reporter | |
Comment 1•15 years ago
|
||
![]() |
Reporter | |
Comment 2•15 years ago
|
||
Er, the tail end of comment 0 should have been "bug 602131". Working on a real fix for that now.
![]() |
Reporter | |
Comment 3•14 years ago
|
||
With the patches in bug 602131 and the patch from bug 581893 (to make the comparison more fair) applied, I get these times with -j -m on the attached testcase:
434
438
96
124
If I make the array a slow array (by setting |arr.foo = 0| on it), I get these times:
1268
1293
972
1011
so even that is decent.
Times with -m only for the self-hosted version are:
Fast arrays: 428
1286
Slow arrays: 1231
2250
so even that's a bit of a win over the native, modulo bug 602129.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•