{"ScriptPreparationCode":null,"TestCases":[{"Name":"slice","Code":"let data = [...new Array(10000)].map((a,i) =\u003E i);\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B)\r\n{\r\n\tlet arr = [...data];\r\n\tarr = arr.slice(-5000);\r\n}","IsDeferred":false},{"Name":"splice","Code":"let data = [...new Array(10000)].map((a,i) =\u003E i);\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B)\r\n{\r\n\tlet arr = [...data];\r\n\tarr.splice(0, arr.length - 5000);\r\n}","IsDeferred":false}]}