Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/123.0.6312.52 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 123
iOS 17.4
Mobile
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 8424542.0 Ops/sec
clientWidth / clientHeight (destructured) 8197593.0 Ops/sec
clientWidth / clientHeight (simple property access) 6626945.5 Ops/sec
getBoundingClientRect() (destructured) 4164583.5 Ops/sec
getBoundingClientRect() (simple property access) 2631306.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth / clientHeight (destructured and renamed)

  • clientWidth / clientHeight (destructured)

  • clientWidth / clientHeight (simple property access)

  • getBoundingClientRect() (destructured)

  • getBoundingClientRect() (simple property access)