Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
6 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 6973682.0 Ops/sec
offsetWidth / offsetHeight (destructured) 7104509.5 Ops/sec
offsetWidth / offsetHeight (simple property access) 5348551.0 Ops/sec
getBoundingClientRect() (destructured) 3220451.0 Ops/sec
getBoundingClientRect() (simple property access) 3195017.0 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)