Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36
Yandex Browser 24
Linux
Desktop
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 763067.8 Ops/sec
clientWidth / clientHeight (destructured) 830633.5 Ops/sec
clientWidth / clientHeight (simple property access) 877763.9 Ops/sec
getBoundingClientRect() (destructured) 1295114.4 Ops/sec
getBoundingClientRect() (simple property access) 1290559.9 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)