Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 5081979.5 Ops/sec
offsetWidth / offsetHeight (destructured) 4865938.5 Ops/sec
offsetWidth / offsetHeight (simple property access) 4646859.5 Ops/sec
getBoundingClientRect() (destructured) 2530935.5 Ops/sec
getBoundingClientRect() (simple property access) 2757955.2 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)


;