Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Windows
Desktop
one year ago
Test name Executions per second
clientWidth / clientHeight (destructured and renamed) 11112713.0 Ops/sec
clientWidth / clientHeight (destructured) 11143992.0 Ops/sec
clientWidth / clientHeight (simple property access) 11084443.0 Ops/sec
getBoundingClientRect() (destructured) 3219415.5 Ops/sec
getBoundingClientRect() (simple property access) 3226926.5 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)