Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Ubuntu
Desktop
4 years ago
Test name Executions per second
createTextNode 635798.9 Ops/sec
textContent 1348093.2 Ops/sec
innerText 883177.4 Ops/sec
innerHTML 1334619.1 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML