Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Windows 7
Desktop
4 years ago
Test name Executions per second
createTextNode 513414.8 Ops/sec
textContent 1112916.8 Ops/sec
innerText 767569.4 Ops/sec
innerHTML 1071108.2 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML