Test case name | Result |
---|---|
getElementById | |
querySelector | |
getElementsByClassName | |
querySelectorAll | |
querySelector class |
Test name | Executions per second |
---|---|
getElementById | 7691434.0 Ops/sec |
querySelector | 4139755.0 Ops/sec |
getElementsByClassName | 3872343.8 Ops/sec |
querySelectorAll | 1773960.2 Ops/sec |
querySelector class | 3722568.0 Ops/sec |