jQuery vs getElementById vs querySelector vs $(getElementById)| Test case name | Result |
|---|---|
| jQuery | |
| getElementById | |
| querySelector | |
| $(getElementById) |
| Test name | Executions per second |
|---|---|
| ✓ getElementById | 7,623,352 Ops/sec |
| jQuery | 6,933,728 Ops/sec |
| querySelector | 4,209,572 Ops/sec |
| $(getElementById) | 4,126,308 Ops/sec |