{"ScriptPreparationCode":"function randomString() {\r\n const charSet = \u0027ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0027\r\n const max = Math.max(2, Math.floor(Math.random() * 200))\r\n let randomString = \u0027\u0027\r\n for (var i = 0; i \u003C max; i\u002B\u002B) {\r\n const randomPosition = Math.floor(Math.random() * charSet.length)\r\n randomString \u002B= charSet.substring(randomPosition, randomPosition \u002B 1)\r\n }\r\n return randomString\r\n}\r\nconst canvas = document.createElement(\u0027canvas\u0027)\r\nwindow.context = canvas.getContext(\u00272d\u0027)\r\nwindow.data = [...Array(1000).keys()].map(randomString)\r\nwindow.data.forEach((text) =\u003E {\r\n const div = document.createElement(\u0027div\u0027)\r\n div.innerHTML = text\r\n document.body.appendChild(div)\r\n})","TestCases":[{"Name":"offsetWidth","Code":"[...document.body.children].forEach(node =\u003E {\r\n node.offsetWidth\r\n})","IsDeferred":false},{"Name":"getBoundingClientRect","Code":"[...document.body.children].forEach(node =\u003E {\r\n node.getBoundingClientRect().width\r\n})","IsDeferred":false},{"Name":"canvas","Code":"window.data.forEach(text =\u003E {\r\n window.context.measureText(text)\r\n})","IsDeferred":false}]}