Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Fedora
Desktop
5 years ago
Test name Executions per second
createTextNode 540071.1 Ops/sec
textContent 1240456.0 Ops/sec
innerText 624159.2 Ops/sec
innerHTML 1284349.6 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML