Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4514.0 Safari/537.36 Edg/92.0.902.2
Chrome 92
Linux
Desktop
3 years ago
Test name Executions per second
createTextNode 1179973.1 Ops/sec
textContent 4820427.5 Ops/sec
innerText 1302834.9 Ops/sec
innerHTML 380745.2 Ops/sec
nodeValue 6638619.0 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML

  • nodeValue