Test case name | Result |
---|---|
offsetWidth / offsetHeight (destructured and renamed) | |
offsetWidth / offsetHeight (destructured) | |
offsetWidth / offsetHeight (simple property access) | |
getBoundingClientRect() (destructured) | |
getBoundingClientRect() (simple property access) |
Test name | Executions per second |
---|---|
offsetWidth / offsetHeight (destructured and renamed) | 942244.5 Ops/sec |
offsetWidth / offsetHeight (destructured) | 956547.9 Ops/sec |
offsetWidth / offsetHeight (simple property access) | 959437.9 Ops/sec |
getBoundingClientRect() (destructured) | 1197322.6 Ops/sec |
getBoundingClientRect() (simple property access) | 1200801.6 Ops/sec |