Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Windows
Desktop
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 7199035.0 Ops/sec
clientWidth / clientHeight (destructured) 7233158.0 Ops/sec
clientWidth / clientHeight (simple property access) 7224838.5 Ops/sec
getBoundingClientRect() (destructured) 2001668.2 Ops/sec
getBoundingClientRect() (simple property access) 2045220.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)