Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
2 years ago
offsetWidth / offsetHeight (destructured and renamed)
6.2M/s
offsetWidth / offsetHeight (destructured)
6.1M/s
offsetWidth / offsetHeight (simple property access)
6.1M/s
getBoundingClientRect() (simple property access)
3.2M/s
getBoundingClientRect() (destructured)
3.1M/s
View exact numbers
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 6,190,642 Ops/sec
offsetWidth / offsetHeight (destructured) 6,135,078 Ops/sec
offsetWidth / offsetHeight (simple property access) 6,097,351 Ops/sec
getBoundingClientRect() (simple property access) 3,215,585 Ops/sec
getBoundingClientRect() (destructured) 3,108,156 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: