Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
3 months ago
Test name Executions per second
createTextNode 1374568.2 Ops/sec
textContent 7348767.5 Ops/sec
innerText 1899139.8 Ops/sec
append 2826456.0 Ops/sec
new text 1344194.5 Ops/sec
Script Preparation code:
Tests:
  • createTextNode

  • textContent

  • innerText

  • append

  • new text