Test case name | Result |
---|---|
getElementById | |
querySelector | |
getElementsByClassName | |
querySelectorAll | |
querySelector class |
Test name | Executions per second |
---|---|
getElementById | 5259570.5 Ops/sec |
querySelector | 2710102.8 Ops/sec |
getElementsByClassName | 3972275.8 Ops/sec |
querySelectorAll | 2226445.0 Ops/sec |
querySelector class | 4140120.8 Ops/sec |