Status: New
Owner: ----

New issue 2087 by [email protected]: 3d-cube deoptimizes after 11 iterations... Why?
http://code.google.com/p/v8/issues/detail?id=2087

I made some minor modifications to the SunSpider 3d-cube tests to do a small experiment. The for loop that iterates over the calls to Init() with increasing cube sizes now goes to 16000. I added a timing loop around the whole thing and execute that loop 30 times. After 11 iterations a decision is made to deoptimize the hottest function, DrawLine() and the test slows down by a factor of 5! Is there a good reason for this?

Here's the timing output from running the shell on the modified 3dcube.js file:

% shell 3dcube.js

started
0. 104
1. 94
2. 91
3. 97
4. 96
5. 94
6. 94
7. 95
8. 94
9. 94
10. 93
11. 464
12. 460
13. 461
14. 461
15. 469
16. 461
 ...

Any feedback is much appreciated.

Peter Jensen
Intel Corporation

Attachments:
        3dcube.js  8.2 KB

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to