Tests:
-
getElementById
-
getElementById and getElementsByClassName
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
getElementById and getElementsByClassName
21.8M/s
View exact numbers
| Test name |
Executions per second |
|
✓
getElementById
|
28,853,520 Ops/sec |
|
getElementById and getElementsByClassName
|
21,813,820 Ops/sec |
Do you really want to delete benchmark?