Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.5000.0 Iron Safari/537.36
Chrome 98
Windows 7
Desktop
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 236060.0 Ops/sec
clientWidth / clientHeight (destructured) 237178.3 Ops/sec
clientWidth / clientHeight (simple property access) 217579.6 Ops/sec
getBoundingClientRect() (destructured) 215006.6 Ops/sec
getBoundingClientRect() (simple property access) 149879.2 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)