Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
Chrome 86
Mac OS X 10.13.6
Desktop
3 years ago
Test name Executions per second
createTextNode 650483.5 Ops/sec
textContent 4159528.2 Ops/sec
innerText 1181798.2 Ops/sec
innerHTML 236663.4 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML


;