{"ScriptPreparationCode":null,"TestCases":[{"Name":"push","Code":"const arr = []\r\nconst length = 100000\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr.push(i, 1)\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false},{"Name":"set length and index","Code":"const arr = []\r\nconst length = 100000\r\narr.length = length*2\u002B1\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr[i*2] = i;\r\n arr[i*2\u002B1] = 1;\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false},{"Name":"index","Code":"const arr = []\r\nconst length = 100000\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr[i*2] = i;\r\n arr[i*2\u002B1] = 1;\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false},{"Name":"typedArray to js array","Code":"const typedArray = new Int8Array(20001);\r\nconst length = 100000\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n typedArray[i*2] = i;\r\n typedArray[i*2\u002B1] = 1;\r\n}\r\nconst arr = Array.from(typedArray);\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false},{"Name":"typedArray","Code":"const arr = new Int8Array(20001);\r\nconst length = 100000\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr[i*2] = i;\r\n arr[i*2\u002B1] = 1;\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false}]}