{"ScriptPreparationCode":"var count = 120000;\r\nvar list = new Array(count).fill(100);","TestCases":[{"Name":"slice immutable","Code":"if (list.length \u003E count - 1) {\r\n list=list.slice(0, count - 1)\r\n list.push(count \u002B 1)\r\n} else {\r\n list = [...list, count \u002B 1];\r\n}\r\n\r\n","IsDeferred":false},{"Name":"splice immutable","Code":"list = [...list, count \u002B 1]\r\n\r\nif (list.length \u003E count) {\r\n list.splice(0, list.length - count);\r\n}","IsDeferred":false},{"Name":"shift-while immutable","Code":"list = [...list, count \u002B 1]\r\n\r\nwhile (list.length \u003E count) {\r\n list.shift();\r\n}","IsDeferred":false},{"Name":"slice mutable","Code":"list=list.slice(0, count)\r\nlist.push(count \u002B 1)\r\n","IsDeferred":false},{"Name":"splice mutable","Code":"list.push(count \u002B 1)\r\nif (list.length \u003E count) {\r\n list.splice(0, list.length - count);\r\n}","IsDeferred":false},{"Name":"shift-while mutable","Code":"list.push(count \u002B 1)\r\n\r\nwhile (list.length \u003E count) {\r\n list.shift();\r\n}","IsDeferred":false}]}