{"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":"replaceChildren","Code":"const node = document.getElementById(\u0027container\u0027);\r\nconst elems = [];\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\telems.push(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nnode.replaceChildren(...elems);","IsDeferred":false},{"Name":"while w/ appendChild","Code":"const node = document.getElementById(\u0027container\u0027);\r\nconst elems = [];\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\telems.push(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nwhile (node.firstChild) {\r\n\tnode.removeChild(node.lastChild);\r\n}\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tnode.appendChild(elems[i]);\r\n}","IsDeferred":false},{"Name":"replaceChildren w/ fragments","Code":"const fragment = document.createDocumentFragment();\r\nconst node = document.getElementById(\u0027container\u0027);\r\nconst elems = [];\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\telems.push(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tfragment.appendChild(elems[i]);\r\n}\r\n\r\nnode.replaceChildren(fragment);","IsDeferred":false},{"Name":"innerHTML w/ fragments","Code":"const fragment = document.createDocumentFragment();\r\nconst node = document.getElementById(\u0027container\u0027);\r\nconst elems = [];\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\telems.push(document.createElement(\u0027div\u0027));\r\n} \r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tfragment.appendChild(elems[i]);\r\n}\r\n\r\nnode.innerHTML = \u0027\u0027;\r\nnode.appendChild(fragment);","IsDeferred":false},{"Name":"while w/ fragments","Code":"const fragment = document.createDocumentFragment();\r\nconst node = document.getElementById(\u0027container\u0027);\r\nconst elems = [];\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\telems.push(document.createElement(\u0027div\u0027));\r\n}\r\n\r\nfor(let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n\tfragment.appendChild(elems[i]);\r\n}\r\n\r\nwhile (node.firstChild) {\r\n\tnode.removeChild(node.lastChild);\r\n}\r\nnode.appendChild(fragment);","IsDeferred":false}]}