Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
6 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 1091147.9 Ops/sec
offsetWidth / offsetHeight (destructured) 1105398.4 Ops/sec
offsetWidth / offsetHeight (simple property access) 1031879.8 Ops/sec
getBoundingClientRect() (destructured) 1404569.2 Ops/sec
getBoundingClientRect() (simple property access) 1365942.1 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)


;