innerHTML vs removeChildFastest: removeChild (1.7x faster)
6,212,595 ops/sec
3,639,913 ops/sec
Fastest: removeChild (1.3x faster)
4,660,412 ops/sec
3,658,790 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| innerHTML | |
| removeChild |
| Test name | Executions per second |
|---|---|
| ✓ removeChild | 3,571,242 Ops/sec |
| innerHTML | 2,804,951 Ops/sec |