Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Ubuntu
Desktop
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 3283051.0 Ops/sec
offsetWidth / offsetHeight (destructured) 3694990.8 Ops/sec
offsetWidth / offsetHeight (simple property access) 3506837.8 Ops/sec
getBoundingClientRect() (destructured) 1246825.1 Ops/sec
getBoundingClientRect() (simple property access) 1228672.9 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)


;