{"ScriptPreparationCode":"var n = 100000;\r\nvar x = [], y =[], z =[];\r\nvar x32 = new Float32Array(n);\r\nvar y32 = new Float32Array(n);\r\nvar z32 = new Float32Array(n);\r\nvar vectors = [];\r\nfor(var i = 0; i \u003C n; i\u002B\u002B){\r\n x[i] = Math.random()*100|0;\r\n y[i] = Math.random()*100|0;\r\n z[i] = Math.random()*100|0;\r\n \r\n x32[i] = Math.random()*100|0;\r\n y32[i] = Math.random()*100|0;\r\n z32[i] = Math.random()*100|0;\r\n \r\n vectors[i] = { x: x[i], y: y[i], z: z[i] };\r\n}\r\nvar vector;","TestCases":[{"Name":"soa","Code":"for (var i = 0; i \u003C n; \u002B\u002Bi) {\r\n x[i] = 2 * x[i];\r\n y[i] = 2 * y[i];\r\n z[i] = 2 * z[i];\r\n}","IsDeferred":false},{"Name":"aos","Code":"for (var i = 0, li=vectors.length; i \u003C li; \u002B\u002Bi) {\r\n vector = vectors[i];\r\n vector.x = 2 * vector.x;\r\n vector.y = 2 * vector.y;\r\n vector.z = 2 * vector.z;\r\n}","IsDeferred":false},{"Name":"typed soa","Code":"for (var i = 0; i \u003C n; \u002B\u002Bi) {\r\n x32[i] = 2 * x32[i];\r\n y32[i] = 2 * y32[i];\r\n z32[i] = 2 * z32[i];\r\n}","IsDeferred":false}]}