Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/136.0.7103.91 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 136
iOS 18.4.1
Mobile
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 12875676.0 Ops/sec
offsetWidth / offsetHeight (destructured) 12343097.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 12256253.0 Ops/sec
getBoundingClientRect() (destructured) 5168755.5 Ops/sec
getBoundingClientRect() (simple property access) 5021389.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)