Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141
Mac OS X 10.15
Desktop
9 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 9366670.0 Ops/sec
offsetWidth / offsetHeight (destructured) 9375057.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 8592719.0 Ops/sec
getBoundingClientRect() (destructured) 5662974.0 Ops/sec
getBoundingClientRect() (simple property access) 5765713.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)