Test case name | Result |
---|---|
clientWidth / clientHeight (destructured and renamed) | |
clientWidth / clientHeight (destructured) | |
clientWidth / clientHeight (simple property access) | |
getBoundingClientRect() (destructured) | |
getBoundingClientRect() (simple property access) | |
getComputedStyle |
Test name | Executions per second |
---|---|
clientWidth / clientHeight (destructured and renamed) | 579662.8 Ops/sec |
clientWidth / clientHeight (destructured) | 596648.3 Ops/sec |
clientWidth / clientHeight (simple property access) | 604349.2 Ops/sec |
getBoundingClientRect() (destructured) | 780471.4 Ops/sec |
getBoundingClientRect() (simple property access) | 790676.5 Ops/sec |
getComputedStyle | 272658.8 Ops/sec |