{"ScriptPreparationCode":"// starting with a plain array buffer, what is fastest?\r\nvar buffer = new ArrayBuffer(1024 * 1024);\r\nvar originalIntView = new Uint32Array(buffer);\r\nfor (var i = 0; i \u003C originalIntView.length; i\u002B\u002B) {\r\n originalIntView[i] = Math.round(Math.random() * 256);\r\n}\r\n\r\n\r\n\r\n\r\n","TestCases":[{"Name":"Uint32 copyWithin","Code":"originalIntView.copyWithin(0, 512*1024, 1024*1024)","IsDeferred":false},{"Name":"Int32 Iteration","Code":"for (var i = 0; i \u003C 1024 * 512; i\u002B\u002B) {\r\n originalIntView[i] = originalIntView[i \u002B 1024 * 512];\r\n}\r\n\r\n\r\n\r\n","IsDeferred":false},{"Name":"Uint32 copy within","Code":"var int32View = new Uint32Array(originalIntView.buffer, originalIntView.byteOffset, originalIntView.byteLength / 4);\r\nfor (var i = 0; i \u003C 1024 * 512 / 4; i\u002B\u002B) {\r\n int32View[i] = int32View[i \u002B 1024 * 512 / 4];\r\n}\r\n\r\n","IsDeferred":false}]}