Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36
Chrome Mobile 117
Android
Mobile
one year ago
Test name Executions per second
append 382709.8 Ops/sec
appendChild 453868.7 Ops/sec
HTML Preparation code:
AخA
 
1
<div id="container"></div>
Script Preparation code:
 
var container = document.getElementById("container");
var paragraph = document.createElement("p");
Tests:
  • append

     
    container.append(paragraph);
  • appendChild

     
    container.appendChild(paragraph);