Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
4 months ago
Test name Executions per second
createTextNode 4305193.0 Ops/sec
textContent 20004100.0 Ops/sec
innerText 5058663.5 Ops/sec
innerHTML 9160148.0 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML