<!DOCTYPE html>
<html>
<head>
<script>
const size = 4410;
const numArrs = 100;
var arrs = new Array();
var start = new Date();
for (var i = 0; i < numArrs+3; ++i) {
arrs.push(new Array(size));
for (var j = 0; j < size; ++j) {
arrs[i][j] = Math.round(Math.random() * (1 << 16));
}
}
var mid = new Date();
for (i = 3; i < numArrs + 3; ++i) {
for (j = 0; j < size; ++j) {
arrs[i][j] = arrs[i-1][j] * arrs[i-2][j] + arrs[i-3][j];
}
}
var end = new Date();
alert(mid - start);
alert(end - mid);
</script>
</head>
</html>