array-buffer-memory.html   [plain text]


<html>
<head>
<title>ArrayBuffer memory test</title>
</head>
<body>
Test creating many ArrayBuffers.  The page should fully load without crashing and without using more than ~300mb of ram.
<script>

function allocateLargeBuffer() {
    var arrayBuffer = new ArrayBuffer(64*1024*1024);
}

for (var i=0; i<96; ++i)
    allocateLargeBuffer();
</script>

</body>
</html>