{"ScriptPreparationCode":null,"TestCases":[{"Name":"for loop","Code":"const numbers = Array(100000).fill(0);\r\nfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n numbers[i] = i;\r\n}\r\n\r\nconst doubled = Array(numbers.length).fill(null);\r\nfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n doubled[i] = numbers[i] * 2;\r\n}","IsDeferred":false},{"Name":"Array.prototype.map","Code":"const numbers = Array(100000).fill(0);\r\nfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n numbers[i] = i;\r\n}\r\n\r\nconst doubled = numbers.map((x) =\u003E x * 2);","IsDeferred":false},{"Name":"for loop using a sparse array","Code":"const numbers = Array(100000).fill(0);\r\nfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n numbers[i] = i;\r\n}\r\n\r\nconst doubled = Array(numbers.length);\r\nfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n doubled[i] = numbers[i] * 2;\r\n}","IsDeferred":false}]}