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
getBoundingClientRect() (simple property access)
469K/s
getBoundingClientRect() (destructured)
416K/s
offsetWidth / offsetHeight (destructured)
360K/s
offsetWidth / offsetHeight (simple property access)
340K/s
offsetWidth / offsetHeight (destructured and renamed)
324K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 469,059 Ops/sec
getBoundingClientRect() (destructured) 415,943 Ops/sec
offsetWidth / offsetHeight (destructured) 360,157 Ops/sec
offsetWidth / offsetHeight (simple property access) 339,509 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 324,000 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: