Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 6505541.5 Ops/sec
offsetWidth / offsetHeight (destructured) 6508774.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 6432471.0 Ops/sec
getBoundingClientRect() (destructured) 4273423.5 Ops/sec
getBoundingClientRect() (simple property access) 4260713.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)