Test case name | Result |
---|---|
querySelector | |
querySelectorAll | |
getElementsByClassName | |
querySelector (ID) | |
getElementsByID |
Test name | Executions per second |
---|---|
querySelector | 373610.6 Ops/sec |
querySelectorAll | 283991.6 Ops/sec |
getElementsByClassName | 3043763.5 Ops/sec |
querySelector (ID) | 161232.2 Ops/sec |
getElementsByID | 3142246.2 Ops/sec |