Tests:
-
parentNode
-
firstChild
-
nextSibling
-
previousSibling
-
firstChild.nextSibling
-
querySelectorAll
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
Safari 17 on Mac OS X 10.15.7
View result in a separate tab
firstChild.nextSibling
28.0M/s
View exact numbers
| Test name |
Executions per second |
|
✓
parentNode
|
30,653,476 Ops/sec |
|
previousSibling
|
29,785,298 Ops/sec |
|
firstChild
|
29,747,742 Ops/sec |
|
nextSibling
|
29,740,668 Ops/sec |
|
firstChild.nextSibling
|
27,951,970 Ops/sec |
|
querySelectorAll
|
6,172,009 Ops/sec |
Do you really want to delete benchmark?