Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
createTextNode 991539.3 Ops/sec
textContent 4638853.0 Ops/sec
innerText 1187823.4 Ops/sec
innerHTML 355336.7 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML