{"ScriptPreparationCode":"const node = document.getElementById(\u0027container\u0027);\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tnode.appendChild(document.createElement(\u0027div\u0027));\r\n}","TestCases":[{"Name":"while w/ appendChild","Code":"const node = document.getElementById(\u0027container\u0027);\r\nconst fragment = document.createDocumentFragment();\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tfragment.appendChild(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nwhile (node.firstChild) {\r\n\tnode.removeChild(node.lastChild);\r\n}\r\n\r\nnode.appendChild(fragment);","IsDeferred":false},{"Name":"replaceChildren","Code":"const node = document.getElementById(\u0027container\u0027);\r\nconst fragment = document.createDocumentFragment();\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tfragment.appendChild(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nnode.replaceChildren(fragment);","IsDeferred":false}]}