Run details:
Mozilla/5.0 (X11; CrOS x86_64 12499.27.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.50 Safari/537.36
Chrome 78
Chrome OS 12499.27.0
Desktop
5 years ago
Test name Executions per second
createTextNode 220674.7 Ops/sec
textContent 170617.3 Ops/sec
innerText 405884.0 Ops/sec
innerHTML 51700.8 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML