Run details:
Mozilla/5.0 (Linux;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 SRAF/4.0 OB/v1.1
Chrome 47
Linux
Desktop
2 years ago
Test name Executions per second
createTextNode 80517.2 Ops/sec
textContent 599569.1 Ops/sec
innerText 233555.3 Ops/sec
innerHTML 75743.6 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML