{"ScriptPreparationCode":null,"TestCases":[{"Name":"With","Code":"const memBefore = window.performance.memory.usedJSHeapSize;\r\nconst data = new Array(10000).fill(0);\r\nconst formatter = Intl.NumberFormat(\u0027ru-RU\u0027);\r\n\r\nconst newData = data.with(123, \u0022new value using With()\u0022);\r\n\r\nconst memDiff = window.performance.memory.usedJSHeapSize - memBefore;\r\nif(memDiff!==0){\r\n console.log(\u0027WITH \u0027,formatter.format(memDiff));\r\n}","IsDeferred":false},{"Name":"ToSpliced","Code":"const memBefore = window.performance.memory.usedJSHeapSize;\r\nconst data = new Array(10000).fill(0);\r\nconst formatter = Intl.NumberFormat(\u0027ru-RU\u0027);\r\n\r\nconst newData = data.toSpliced(123, 1, \u0022new value using With()\u0022);\r\nconst memDiff = window.performance.memory.usedJSHeapSize - memBefore;\r\nif(memDiff!==0){\r\n console.log(\u0027TSPL \u0027,formatter.format(memDiff));\r\n}","IsDeferred":false},{"Name":"Splice","Code":"const memBefore = window.performance.memory.usedJSHeapSize;\r\nconst data = new Array(10000).fill(0);\r\nconst formatter = Intl.NumberFormat(\u0027ru-RU\u0027);\r\n\r\nconst newData = [...data].splice(123, 1, \u0022new value using With()\u0022);\r\nconst memDiff = window.performance.memory.usedJSHeapSize - memBefore;\r\nif(memDiff!==0){\r\n console.log(\u0027SPLI \u0027,formatter.format(memDiff));\r\n}","IsDeferred":false}]}