Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Ubuntu
Desktop
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 3365099.8 Ops/sec
clientWidth / clientHeight (destructured) 3390094.2 Ops/sec
clientWidth / clientHeight (simple property access) 3408239.0 Ops/sec
getBoundingClientRect() (destructured) 968003.9 Ops/sec
getBoundingClientRect() (simple property access) 1052505.9 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)