Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48
Chrome 91
Windows 7
Desktop
3 years ago
Test name Executions per second
createTextNode 547001.1 Ops/sec
textContent 2509838.2 Ops/sec
innerText 823748.6 Ops/sec
innerHTML 215807.3 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML