Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Linux
Desktop
3 years ago
Test name Executions per second
element.textContent 272065.7 Ops/sec
node.textContent 1344979.5 Ops/sec
node.nodeValue 1414657.5 Ops/sec
node.data 1414749.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • element.textContent

  • node.textContent

  • node.nodeValue

  • node.data