Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Chrome OS 14541.0.0
Desktop
11 months ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 623693.5 Ops/sec
offsetWidth / offsetHeight (destructured) 646905.9 Ops/sec
offsetWidth / offsetHeight (simple property access) 607348.4 Ops/sec
getBoundingClientRect() (destructured) 671791.6 Ops/sec
getBoundingClientRect() (simple property access) 686401.4 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)