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