Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
10 months ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 582697.6 Ops/sec
clientWidth / clientHeight (destructured) 593522.1 Ops/sec
clientWidth / clientHeight (simple property access) 573582.1 Ops/sec
getBoundingClientRect() (destructured) 711476.6 Ops/sec
getBoundingClientRect() (simple property access) 704452.0 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)