Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0
Chrome 123
Windows
Desktop
9 months ago
Test name Executions per second
createTextNode 1416920.8 Ops/sec
textContent 4059106.8 Ops/sec
innerText 2207988.2 Ops/sec
innerHTML 1424045.5 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • innerHTML