Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
textContent
2K/s
nodeValue
2K/s

Fastest: textContent (1.2x faster)

View exact numbers
  • textContent: 2,161 ops/sec
  • nodeValue: 1,783 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    textContent
    nodeValue
    classList

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121 on Windows
View result in a separate tab
textContent
3K/s
classList
1K/s
nodeValue
0/s
View exact numbers
Test name Executions per second
textContent 3,133 Ops/sec
classList 1,235 Ops/sec
nodeValue 0 Ops/sec