Test case name | Result |
---|---|
getElementById | |
querySelector | |
getElementsByClassName | |
querySelectorAll | |
querySelector class |
Test name | Executions per second |
---|---|
getElementById | 2999357.0 Ops/sec |
querySelector | 1906399.1 Ops/sec |
getElementsByClassName | 2379912.2 Ops/sec |
querySelectorAll | 1390923.2 Ops/sec |
querySelector class | 2453756.0 Ops/sec |