Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.14.4
Desktop
3 years ago
Test name Executions per second
createTextNode 192551.1 Ops/sec
textContent 587.0 Ops/sec
innerText 605.7 Ops/sec
append 361817.2 Ops/sec
innerHTML 24.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • append

  • innerHTML