Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 Vivaldi/2.1.1337.36
Chrome 70
Windows 7
Desktop
6 years ago
Test name Executions per second
createTextNode 236761.9 Ops/sec
textContent 5199519.5 Ops/sec
innerText 1293416.4 Ops/sec
innerHTML 109675.7 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML


;