{"ScriptPreparationCode":"var indices = [1, 100, 1000, 5000, 50000, 99000]\r\nvar list = [];\r\nfor (let i = 0; i \u003C 1000 * 1000; i\u002B\u002B) {\r\n list.push(i);\r\n}","TestCases":[{"Name":"slice \u002B spread","Code":"let list2 = list;\r\nfor (let i = 0; i \u003C indices.length; i\u002B\u002B) {\r\n list2 = [...list2.slice(0, i), 777, ...list2.slice(i \u002B 1, Infinity)]\r\n}","IsDeferred":false},{"Name":"slice \u002B concat","Code":"let list2 = list;\r\nfor (let i = 0; i \u003C indices.length; i\u002B\u002B) {\r\n list2 = [].concat(list2.slice(0, i), [777], list2.slice(i \u002B 1, Infinity))\r\n}","IsDeferred":false},{"Name":"slice \u002B mutation","Code":"let list2 = list;\r\nfor (let i = 0; i \u003C indices.length; i\u002B\u002B) {\r\n list2 = list2.slice()\r\n list2[i] = 777;\r\n}","IsDeferred":false},{"Name":"spread \u002B mutation","Code":"let list2 = list;\r\nfor (let i = 0; i \u003C indices.length; i\u002B\u002B) {\r\n list2 = [...list2]\r\n list2[i] = 777;\r\n}","IsDeferred":false},{"Name":"splice","Code":"let list2 = list;\r\nfor (let i = 0; i \u003C indices.length; i\u002B\u002B) {\r\n list2.splice(i, 1, 777)\r\n}","IsDeferred":false}]}