Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146
Windows
Desktop
one month ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 471844.7 Ops/sec
offsetWidth / offsetHeight (destructured) 481602.8 Ops/sec
offsetWidth / offsetHeight (simple property access) 481662.5 Ops/sec
getBoundingClientRect() (destructured) 620105.4 Ops/sec
getBoundingClientRect() (simple property access) 630518.6 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)