Test case name | Result |
---|---|
getElementById | |
querySelector | |
if-else id | |
if-else querySelector |
Test name | Executions per second |
---|---|
getElementById | 5378841.5 Ops/sec |
querySelector | 2898319.5 Ops/sec |
if-else id | 3370841.8 Ops/sec |
if-else querySelector | 948958.6 Ops/sec |