Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Mac OS X 10.15
Desktop
4 months ago
Test name Executions per second
createTextNode 4815009.0 Ops/sec
textContent 7036517.0 Ops/sec
innerText 4086045.0 Ops/sec
innerHTML 6923422.0 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML