Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 9944828.0 Ops/sec
offsetWidth / offsetHeight (destructured) 10442707.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 10447271.0 Ops/sec
getBoundingClientRect() (destructured) 6183641.0 Ops/sec
getBoundingClientRect() (simple property access) 6156952.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • offsetWidth / offsetHeight (destructured and renamed)

  • offsetWidth / offsetHeight (destructured)

  • offsetWidth / offsetHeight (simple property access)

  • getBoundingClientRect() (destructured)

  • getBoundingClientRect() (simple property access)