Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/333.0.671582647 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.3
Mobile
7 months ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 3768219.0 Ops/sec
clientWidth / clientHeight (destructured) 3689861.8 Ops/sec
clientWidth / clientHeight (simple property access) 2738467.2 Ops/sec
getBoundingClientRect() (destructured) 2143165.0 Ops/sec
getBoundingClientRect() (simple property access) 2652686.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth / clientHeight (destructured and renamed)

  • clientWidth / clientHeight (destructured)

  • clientWidth / clientHeight (simple property access)

  • getBoundingClientRect() (destructured)

  • getBoundingClientRect() (simple property access)