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