Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1.2
Mobile
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 4398047.5 Ops/sec
offsetWidth / offsetHeight (destructured) 4115442.2 Ops/sec
offsetWidth / offsetHeight (simple property access) 3270034.8 Ops/sec
getBoundingClientRect() (destructured) 3528267.8 Ops/sec
getBoundingClientRect() (simple property access) 3122420.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)


;