{"ScriptPreparationCode":"var array = new Array(1000000).fill(0);","TestCases":[{"Name":"Map","Code":"const array2 = array.map((item, index) =\u003E index);","IsDeferred":false},{"Name":"Preallocation","Code":"const array2 = new Array(1000000).fill(0);\r\nfor (let i = 0, len =array2.length ; i \u003C len ; i\u002B\u002B) array2[i] = i;","IsDeferred":false},{"Name":"Push","Code":"const array2 = []\r\nfor (let i = 0, len = 1000000; i \u003C len; i\u002B\u002B) array2.push(i);","IsDeferred":false},{"Name":"no fill","Code":"const array2 = new Array(1000000)\r\nfor (let i = 0; i \u003C array2.length; i\u002B\u002B) array2[i] = i;","IsDeferred":false}]}