HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
removeChild
8.5M/s
display:none
2.0M/s

Fastest: removeChild (4.3x faster)

View exact numbers
  • removeChild: 8,470,142 ops/sec
  • display:none: 1,982,577 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
    removeChild
    display:none

    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/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
removeChild
58.8M/s
display:none
2.1M/s
View exact numbers
Test name Executions per second
removeChild 58,789,256 Ops/sec
display:none 2,125,429 Ops/sec