Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1
Mobile Safari 26
iOS 18.6
Mobile
7 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 10952254.0 Ops/sec
offsetWidth / offsetHeight (destructured) 9922356.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 9499715.0 Ops/sec
getBoundingClientRect() (destructured) 3104075.5 Ops/sec
getBoundingClientRect() (simple property access) 3607188.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • offsetWidth / offsetHeight (destructured and renamed)

  • offsetWidth / offsetHeight (destructured)

  • offsetWidth / offsetHeight (simple property access)

  • getBoundingClientRect() (destructured)

  • getBoundingClientRect() (simple property access)