Test name | Executions per second |
---|---|
append | 3604833.2 Ops/sec |
appendChild | 3896227.2 Ops/sec |
<div id="container"></div>
var container = document.getElementById("container");
var paragraph = document.createElement("p");
container.append(paragraph);
container.appendChild(paragraph);