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)
458K/s
getBoundingClientRect() (destructured)
440K/s
offsetWidth / offsetHeight (destructured)
418K/s
offsetWidth / offsetHeight (destructured and renamed)
395K/s
offsetWidth / offsetHeight (simple property access)
391K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 458,370 Ops/sec
getBoundingClientRect() (destructured) 440,364 Ops/sec
offsetWidth / offsetHeight (destructured) 418,286 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 394,751 Ops/sec
offsetWidth / offsetHeight (simple property access) 391,145 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: