querySelector vs getElementsByClassName (first element of) vs getElementById| Test case name | Result |
|---|---|
| querySelector | |
| getElementsByClassName (first element of) | |
| getElementById |
| Test name | Executions per second |
|---|---|
| ✓ querySelector | 5,316,136 Ops/sec |
| getElementById | 4,539,970 Ops/sec |
| getElementsByClassName (first element of) | 3,526,762 Ops/sec |