{"ScriptPreparationCode":"// Change these numbers to see how well they scale\r\nbatch = 1000;\r\nrepeat = 10;","TestCases":[{"Name":"insertAdjacentHTML","Code":"const box = document.getElementsByTagName(\u0022div\u0022).item(0);\r\nlet html = \u0027\u0027;\r\nfor (let i = 0; i \u003C batch; i\u002B\u002B)\r\n html \u002B= \u0027\u003Cdiv class=\u0022a b\u0022\u003E\u003Cdiv\u003ETest\u003C/div\u003E\u003C/div\u003E\u0027;\r\nfor (let i = 0; i \u003C repeat; i\u002B\u002B)\r\n box.insertAdjacentHTML(\u0027beforeend\u0027, html);","IsDeferred":false},{"Name":"createContextualFragment","Code":"const box = document.getElementsByTagName(\u0022div\u0022).item(0);\r\nlet html = \u0027\u0027;\r\nfor (let i = 0; i \u003C batch; i\u002B\u002B)\r\n html \u002B= \u0027\u003Cdiv class=\u0022a b\u0022\u003E\u003Cdiv\u003ETest\u003C/div\u003E\u003C/div\u003E\u0027;\r\nfor (let i = 0; i \u003C repeat; i\u002B\u002B) {\r\n const range = document.createRange();\r\n range.selectNode(box);\r\n const documentFragment = range.createContextualFragment(html);\r\n box.appendChild(documentFragment);\r\n}","IsDeferred":false}]}