getBoundingClientRect() vs CSS Height Property vs Other CSS PropertyFastest: getBoundingClientRect() (1.4x faster)
160 ops/sec
118 ops/sec
111 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| getBoundingClientRect() | |
| CSS Height Property | |
| Other CSS Property |
| Test name | Executions per second |
|---|---|
| ✓ Other CSS Property | 5,239 Ops/sec |
| getBoundingClientRect() | 4,786 Ops/sec |
| CSS Height Property | 4,581 Ops/sec |