Tests:
-
innerHTML
-
removeChild-firstChild
-
removeChild-lastChild
Rendered benchmark preparation results:
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/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Chrome 134 on Windows
View result in a separate tab
removeChild-firstChild
14.3M/s
removeChild-lastChild
13.7M/s
View exact numbers
| Test name |
Executions per second |
|
✓
removeChild-firstChild
|
14,339,680 Ops/sec |
|
removeChild-lastChild
|
13,707,729 Ops/sec |
|
innerHTML
|
7,960,907 Ops/sec |
Do you really want to delete benchmark?