Test case name | Result |
---|---|
clientWidth / clientHeight (destructured and renamed) | |
clientWidth / clientHeight (destructured) | |
clientWidth / clientHeight (simple property access) | |
getBoundingClientRect() (destructured) | |
getBoundingClientRect() (simple property access) |
Test name | Executions per second |
---|---|
clientWidth / clientHeight (destructured and renamed) | 982386.9 Ops/sec |
clientWidth / clientHeight (destructured) | 1038337.4 Ops/sec |
clientWidth / clientHeight (simple property access) | 883955.3 Ops/sec |
getBoundingClientRect() (destructured) | 1270600.1 Ops/sec |
getBoundingClientRect() (simple property access) | 1293518.6 Ops/sec |