Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
createTextNode 1192176.1 Ops/sec
textContent 2695080.5 Ops/sec
innerText 1505398.9 Ops/sec
innerHTML 2732556.2 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML