{"ScriptPreparationCode":null,"TestCases":[{"Name":"Array constructor - 10_000 items","Code":"const n = 10_000;\r\nconst arr = new Array(n);\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i;\r\n}","IsDeferred":false},{"Name":"Array literal - 10_000 items","Code":"const n = 10_000;\r\nconst arr = [];\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr.push(i);\r\n} ","IsDeferred":false},{"Name":"Array literal (assign by index) - 10_000 items","Code":"const n = 10_000;\r\nconst arr = [];\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i;\r\n} ","IsDeferred":false},{"Name":"Array literal (explicit length) - 10 items","Code":"const n = 10_000;\r\nconst arr = [];\r\narr.length = n;\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i;\r\n} ","IsDeferred":false},{"Name":"Frozen Array constructor - 10_000 items","Code":"const n = 10_000\r\nconst arr = new Array(n)\r\nObject.freeze(arr)\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i\r\n}","IsDeferred":false},{"Name":"Array constructor, no new - 10_000 items","Code":"const n = 10_000;\r\nconst arr = Array(n);\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i;\r\n}","IsDeferred":false},{"Name":"Array constructor fill - 10_000 items","Code":"const n = 10_000;\r\nconst arr = Array(n).fill(undefined);\r\n\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr[i] = i;\r\n}","IsDeferred":false}]}