Test name | Executions per second |
---|---|
Element.append() | 1151152.4 Ops/sec |
Element.appendChild() | 1333306.6 Ops/sec |
var el1 = document.createElement('div')
var el2 = document.createElement('div')
var child1 = document.createElement('div')
var child2 = document.createElement('div')
el1.append(child1)
el2.appendChild(child2)