{"ScriptPreparationCode":"function randomString(length) {\r\n let result = \u0022\u0022;\r\n const characters = \u0022ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0022;\r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n result \u002B= characters.charAt(Math.floor(Math.random() * characters.length));\r\n }\r\n return result;\r\n}\r\n\r\nvar randomStrings = Array.from({\r\n length: 1000\r\n}, () =\u003E randomString(100));\r\n\r\nvar text = document.createTextNode(\u0022\u0022);","TestCases":[{"Name":"Text.data","Code":"for (const s of randomStrings) {\r\n text.data = s;\r\n}","IsDeferred":false},{"Name":"Text.nodeValue","Code":"for (const s of randomStrings) {\r\n text.nodeValue = s;\r\n}","IsDeferred":false},{"Name":"Text.data with check against old value","Code":"for (const s of randomStrings) {\r\n if (text.data !== s) {\r\n text.data = s;\r\n }\r\n}","IsDeferred":false},{"Name":"Text.nodeValue with check against old value","Code":"for (const s of randomStrings) {\r\n if (text.nodeValue !== s) {\r\n text.nodeValue = s;\r\n }\r\n}","IsDeferred":false}]}