HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 14 community runs

Desktop Results:
Chrome 8 runs
removeChild
7.9M/s
removeChild backwards
7.8M/s
innerText
4.2M/s
innerHTML
3.2M/s

Fastest: removeChild (2.5x faster)

View exact numbers
  • removeChild: 7,880,482 ops/sec
  • removeChild backwards: 7,830,864 ops/sec
  • innerText: 4,235,333 ops/sec
  • innerHTML: 3,168,978 ops/sec
Firefox 6 runs
removeChild
6.1M/s
removeChild backwards
6.0M/s
innerHTML
4.6M/s
innerText
4.1M/s

Fastest: removeChild (1.5x faster)

View exact numbers
  • removeChild: 6,088,562 ops/sec
  • removeChild backwards: 6,020,191 ops/sec
  • innerHTML: 4,640,878 ops/sec
  • innerText: 4,076,102 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
    innerHTML
    removeChild
    removeChild backwards
    innerText

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Chrome 142 on Windows
View result in a separate tab
removeChild
19.4M/s
removeChild backwards
18.6M/s
innerText
6.0M/s
innerHTML
2.5M/s
View exact numbers
Test name Executions per second
removeChild 19,418,184 Ops/sec
removeChild backwards 18,649,826 Ops/sec
innerText 5,976,126 Ops/sec
innerHTML 2,455,344 Ops/sec