Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows 7
Desktop
6 months ago
Test name Executions per second
element.textContent 1312618.8 Ops/sec
node.textContent 2031445.1 Ops/sec
node.nodeValue 2118952.5 Ops/sec
node.data 2082874.6 Ops/sec
innerText 900923.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • element.textContent

  • node.textContent

  • node.nodeValue

  • node.data

  • innerText