Tests:
-
Remove firstChild
-
Remove lastChild
-
innerHTML
-
innerText
-
textContent
-
firstChild.remove
-
range
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
Chrome 134 on Windows
View result in a separate tab
firstChild.remove
36.2M/s
Remove firstChild
36.1M/s
View exact numbers
| Test name |
Executions per second |
|
✓
firstChild.remove
|
36,180,392 Ops/sec |
|
Remove firstChild
|
36,137,100 Ops/sec |
|
Remove lastChild
|
36,104,840 Ops/sec |
|
innerHTML
|
18,903,592 Ops/sec |
|
textContent
|
18,562,606 Ops/sec |
|
innerText
|
12,979,256 Ops/sec |
|
range
|
3,113,212 Ops/sec |
Do you really want to delete benchmark?