Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Linux
Desktop
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 5594626.5 Ops/sec
offsetWidth / offsetHeight (destructured) 5417145.5 Ops/sec
offsetWidth / offsetHeight (simple property access) 5276142.0 Ops/sec
getBoundingClientRect() (destructured) 2756496.2 Ops/sec
getBoundingClientRect() (simple property access) 2808583.8 Ops/sec
clientWidth / clientHeight (destructured) 6966551.0 Ops/sec
clientWidth / clientHeight (simple property access) 6933728.0 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)

  • clientWidth / clientHeight (destructured)

  • clientWidth / clientHeight (simple property access)