Run details:
Mozilla/5.0 (Android 14; Mobile; rv:120.0) Gecko/120.0 Firefox/120.0
Firefox Mobile 120
Android
Mobile
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 1600825.4 Ops/sec
offsetWidth / offsetHeight (destructured) 2148748.8 Ops/sec
offsetWidth / offsetHeight (simple property access) 2627109.0 Ops/sec
getBoundingClientRect() (destructured) 1031285.7 Ops/sec
getBoundingClientRect() (simple property access) 1022488.8 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)