{"ScriptPreparationCode":null,"TestCases":[{"Name":"array slice","Code":"const data = new Array(300).fill(55);\r\nlet initArr = new Array(10000).fill(88);\r\nconst limitArr = (arr, limit) =\u003E (arr.length \u003E limit ? arr.slice(-limit) : arr);\r\n\r\nfor(i=0; i\u003C100; i\u002B\u002B) {\r\n initArr.push(...data);\r\n initArr = limitArr(initArr, 1000);\r\n}\r\n","IsDeferred":false},{"Name":"immutable-js","Code":"const data = new Array(300).fill(55);\r\nlet initList = Immutable.List();\r\ninitList = initList.push(...(new Array(10000).fill(88)));\r\nconst limitList = (list, limit) =\u003E (list.size \u003E limit ? list.takeLast(limit) : list);\r\n\r\nfor(i=0; i\u003C100; i\u002B\u002B) {\r\n initList = limitList(initList.push(...data), 1000);\r\n}\r\n","IsDeferred":false}]}