Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Linux
Desktop
2 years ago
Test name Executions per second
createTextNode 8222736.5 Ops/sec
textContent 2655173.2 Ops/sec
innerText 1806766.9 Ops/sec
innerHTML 2681648.0 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML