Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 13677758.0 Ops/sec
clientWidth / clientHeight (destructured) 13477659.0 Ops/sec
clientWidth / clientHeight (simple property access) 12307475.0 Ops/sec
getBoundingClientRect() (destructured) 4971446.0 Ops/sec
getBoundingClientRect() (simple property access) 4988645.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)