Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/120 Version/11.1.1 Safari/605.1.15
Safari 11
Mac OS X 10.13.5
Desktop
one year ago
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 4344583.5 Ops/sec
offsetWidth / offsetHeight (destructured) 4293119.0 Ops/sec
offsetWidth / offsetHeight (simple property access) 3580937.0 Ops/sec
getBoundingClientRect() (destructured) 3717242.2 Ops/sec
getBoundingClientRect() (simple property access) 3667760.8 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)