-
-
Save bnoordhuis/4009799 to your computer and use it in GitHub Desktop.
v8 big array performance bugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var a = [], i = 0; i < 64*1024*1024; ++i) a.push(123.456); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var a = [123.456], i = 0; i < 64*1024*1024; ++i) a.push(123.456); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ time out/native/d8 tmp/big-array/1.js | |
real 0m3.672s | |
user 0m3.176s | |
sys 0m0.452s | |
$ time out/native/d8 tmp/big-array/2.js | |
# | |
# Fatal error in CALL_AND_RETRY_0 | |
# Allocation failed - process out of memory | |
# | |
Trace/breakpoint trap (core dumped) | |
real 0m52.356s | |
user 0m51.995s | |
sys 0m0.416s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://code.google.com/p/v8/issues/detail?id=2392