Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
createTextNode 1895872.8 Ops/sec
textContent 3904933.5 Ops/sec
innerText 2712843.5 Ops/sec
innerHTML 4121566.8 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML