HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
removeChild
9.1M/s
remove
9.0M/s
textContent
2.9M/s

Fastest: removeChild (3.1x faster)

View exact numbers
  • removeChild: 9,059,580 ops/sec
  • remove: 9,004,583 ops/sec
  • textContent: 2,936,366 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
    removeChild
    remove

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
remove
31.0M/s
removeChild
31.0M/s
textContent
14.7M/s
View exact numbers
Test name Executions per second
remove 31,016,476 Ops/sec
removeChild 31,003,706 Ops/sec
textContent 14,675,191 Ops/sec