Run details:
Mozilla/5.0 (Linux; Android 10; Redmi 3S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
createTextNode 119012.1 Ops/sec
textContent 458285.2 Ops/sec
innerText 155024.7 Ops/sec
innerHTML 29969.6 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML