getBBox vs getBoundingClientRect vs baseValFastest: baseVal (4.8x faster)
1,204,522 ops/sec
300,840 ops/sec
249,905 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| getBBox | |
| getBoundingClientRect | |
| baseVal |
| Test name | Executions per second |
|---|---|
| ✓ baseVal | 897,244 Ops/sec |
| getBBox | 151,247 Ops/sec |
| getBoundingClientRect | 117,374 Ops/sec |