Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/114.0 Firefox/114.0
Firefox Mobile 114
Android
Mobile
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 5796316.5 Ops/sec
clientWidth / clientHeight (destructured) 5759618.5 Ops/sec
clientWidth / clientHeight (simple property access) 5701253.5 Ops/sec
getBoundingClientRect() (destructured) 1854468.0 Ops/sec
getBoundingClientRect() (simple property access) 1457819.6 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)