Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Mac OS X 10.13
Desktop
2 years ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 5510722.5 Ops/sec
clientWidth / clientHeight (destructured) 5504668.5 Ops/sec
clientWidth / clientHeight (simple property access) 5463197.0 Ops/sec
getBoundingClientRect() (destructured) 2422019.2 Ops/sec
getBoundingClientRect() (simple property access) 2446347.5 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)