{"ScriptPreparationCode":"const uint8array = new Uint8Array(81);\r\n\r\nfor(let i = 0; i \u003C 81; i\u002B\u002B) {\r\n uint8array[i] = Math.floor(Math.random() * 2);\r\n}","TestCases":[{"Name":"slice()","Code":"for (let i; i \u003C 1000; i\u002B\u002B)\r\n{\r\n const copy = uint8array.slice();\r\n r = Math.floor(Math.random() * 81);\r\n copy[r] ^= 1;\r\n}","IsDeferred":false},{"Name":"spread","Code":"for (let i; i \u003C 1000; i\u002B\u002B)\r\n{\r\n const copy = [...uint8array];\r\n r = Math.floor(Math.random() * 81);\r\n copy[r] ^= 1;\r\n}","IsDeferred":false},{"Name":"from()","Code":"for (let i; i \u003C 1000; i\u002B\u002B)\r\n{\r\n const copy = TypedArray.from(uint8array);\r\n r = Math.floor(Math.random() * 81);\r\n copy[r] ^= 1;\r\n}","IsDeferred":false},{"Name":"with()","Code":"for (let i; i \u003C 1000; i\u002B\u002B)\r\n{\r\n r = Math.floor(Math.random() * 81);\r\n const copy = uint8array.with(r, uint8array[r] ^ 1);\r\n}","IsDeferred":false}]}