Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/117.0.5938.108 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 117
iOS 16.6
Mobile
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 4063424.8 Ops/sec
clientWidth / clientHeight (destructured) 3982313.5 Ops/sec
clientWidth / clientHeight (simple property access) 3456316.2 Ops/sec
getBoundingClientRect() (destructured) 3292613.8 Ops/sec
getBoundingClientRect() (simple property access) 3134754.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)