getElementById vs querySelector vs querySelectorAll vs with iF| Test case name | Result |
|---|---|
| getElementById | |
| querySelector | |
| querySelectorAll | |
| with iF |
| Test name | Executions per second |
|---|---|
| ✓ with iF | 8,687,574 Ops/sec |
| getElementById | 8,363,816 Ops/sec |
| querySelector | 2,722,104 Ops/sec |
| querySelectorAll | 1,278,164 Ops/sec |