Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0
Chrome 139
Windows
Desktop
8 months ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 747216.1 Ops/sec
clientWidth / clientHeight (destructured) 768359.9 Ops/sec
clientWidth / clientHeight (simple property access) 747077.4 Ops/sec
getBoundingClientRect() (destructured) 962804.9 Ops/sec
getBoundingClientRect() (simple property access) 981891.9 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)