Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
one month ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 719377.0 Ops/sec
clientWidth / clientHeight (destructured) 596091.2 Ops/sec
clientWidth / clientHeight (simple property access) 696362.6 Ops/sec
getBoundingClientRect() (destructured) 838808.2 Ops/sec
getBoundingClientRect() (simple property access) 906137.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth / clientHeight (destructured and renamed)

  • clientWidth / clientHeight (destructured)

  • clientWidth / clientHeight (simple property access)

  • getBoundingClientRect() (destructured)

  • getBoundingClientRect() (simple property access)