Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.3.2
Mobile
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 9564654.0 Ops/sec
offsetWidth / offsetHeight (destructured) 11079985.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 6155271.5 Ops/sec
getBoundingClientRect() (destructured) 2825458.8 Ops/sec
getBoundingClientRect() (simple property access) 2827365.2 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)