Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 10.13.6
Desktop
4 years ago
Test name Executions per second
createTextNode 740664.4 Ops/sec
textContent 4414297.5 Ops/sec
innerText 1018313.2 Ops/sec
innerHTML 146914.6 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML