{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * max);\r\n}\r\n\r\nvar a = [...new Array(10000)].map(_ =\u003E getRandomInt(1000000));\r\nvar ta = (new Float32Array(10000)).map(_ =\u003E getRandomInt(1000000));","TestCases":[{"Name":"array sort","Code":"a.sort();","IsDeferred":false},{"Name":"typedArray sort","Code":"ta.sort();","IsDeferred":false},{"Name":"array i/o","Code":"for (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n a[i] = a[i] \u002B 1;\r\n}","IsDeferred":false},{"Name":"typedArray i/o","Code":"for (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n ta[i] = ta[i] \u002B 1;\r\n}\r\n","IsDeferred":false},{"Name":"typedArray i/o w convert back to array","Code":"for (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n ta[i] = ta[i] \u002B 1;\r\n}\r\nlet tb = Array.from(ta);","IsDeferred":false},{"Name":"create arrays","Code":"const a = [];\r\n\r\nfor (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n a.push([i]);\r\n}\r\n","IsDeferred":false},{"Name":"create typed arrays","Code":"const a = [];\r\n\r\nfor (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n a.push(new Float32Array([i]));\r\n}\r\n","IsDeferred":false},{"Name":"create typed arrays in typed array","Code":"const a = new Float32Array(10000);\r\n\r\nfor (let i = 0; i \u003C 10000; \u002B\u002Bi) {\r\n a[i] = new Float32Array([i]);\r\n}\r\n","IsDeferred":false}]}