Tests:
-
innerHTML
-
removeChild
-
node.firstChild.remove
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128 on Linux
View result in a separate tab
node.firstChild.remove
21.7M/s
View exact numbers
| Test name |
Executions per second |
|
✓
node.firstChild.remove
|
21,703,240 Ops/sec |
|
removeChild
|
21,342,806 Ops/sec |
|
innerHTML
|
11,274,576 Ops/sec |
Do you really want to delete benchmark?