Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
2 years ago
offsetWidth / offsetHeight (destructured)
191K/s
getBoundingClientRect() (simple property access)
191K/s
getBoundingClientRect() (destructured)
186K/s
offsetWidth / offsetHeight (simple property access)
181K/s
offsetWidth / offsetHeight (destructured and renamed)
171K/s
View exact numbers
Test name Executions per second
offsetWidth / offsetHeight (destructured) 191,446 Ops/sec
getBoundingClientRect() (simple property access) 190,826 Ops/sec
getBoundingClientRect() (destructured) 186,443 Ops/sec
offsetWidth / offsetHeight (simple property access) 181,241 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 170,904 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: