Run details:
Mozilla/5.0 (Linux; Android 12; SM-G9750) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.192 Mobile Safari/537.36 OPR/74.2.3922.71774
Opera Mobile 74
Android
Mobile
2 years ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 119997.8 Ops/sec
clientWidth / clientHeight (destructured) 122144.7 Ops/sec
clientWidth / clientHeight (simple property access) 121962.9 Ops/sec
getBoundingClientRect() (destructured) 126339.2 Ops/sec
getBoundingClientRect() (simple property access) 126211.4 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)