Run details:
Mozilla/5.0 (Linux; Android 12; SM-N975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36
Chrome Mobile 112
Android
Mobile
one year ago
Test name Executions per second
createTextNode 747638.2 Ops/sec
textContent 3236471.2 Ops/sec
innerText 905634.4 Ops/sec
append 1315452.8 Ops/sec
innerHTML 101070.6 Ops/sec
insertAdjacentHTML 127221.7 Ops/sec
replaceChildren 1107428.5 Ops/sec
appendChild 652476.3 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • append

  • innerHTML

  • insertAdjacentHTML

  • replaceChildren

  • appendChild


;