{"ScriptPreparationCode":"var N = 1000000;\r\nvar x = new Array(N), y = new Array(N), vx = new Array(N), vy = new Array(N);\r\nvar vectors = new Array(N);\r\nfor(var i = 0; i \u003C N; \u002B\u002Bi){\r\n x[i] = Math.random()*100|0;\r\n y[i] = Math.random()*100|0;\r\n vx[i] = Math.random()*100|0;\r\n vy[i] = Math.random()*100|0;\r\n \r\n vectors[i] = { x: x[i], y: y[i], vx: vx[i], vy: vy[i] };\r\n}\r\nvar vector;","TestCases":[{"Name":"soa","Code":"for (var i = 0; i \u003C N; \u002B\u002Bi) {\r\n x[i] \u002B= vx[i];\r\n y[i] \u002B= vy[i];\r\n}","IsDeferred":false},{"Name":"aos","Code":"for (var i = 0; i \u003C N; \u002B\u002Bi) {\r\n vector = vectors[i];\r\n vector.x \u002B= vector.vx;\r\n vector.y \u002B= vector.vy;\r\n}","IsDeferred":false}]}