Test case name | Result |
---|---|
querySelectorAll | |
querySelector + querySelectorAll | |
querySelectorAll again (in case of caching) |
Test name | Executions per second |
---|---|
querySelectorAll | 18178.4 Ops/sec |
querySelector + querySelectorAll | 38450.6 Ops/sec |
querySelectorAll again (in case of caching) | 17060.7 Ops/sec |