Test case name | Result |
---|---|
querySelector | |
querySelectorAll | |
getElementsByClassName | |
querySelector (ID) | |
getElementsByID |
Test name | Executions per second |
---|---|
querySelector | 367120.6 Ops/sec |
querySelectorAll | 283288.9 Ops/sec |
getElementsByClassName | 3997314.0 Ops/sec |
querySelector (ID) | 160849.7 Ops/sec |
getElementsByID | 3075070.5 Ops/sec |