Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
Chrome 133
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
720K/s
getBoundingClientRect() (destructured)
683K/s
offsetWidth / offsetHeight (simple property access)
569K/s
offsetWidth / offsetHeight (destructured)
533K/s
offsetWidth / offsetHeight (destructured and renamed)
484K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 720,242 Ops/sec
getBoundingClientRect() (destructured) 683,043 Ops/sec
offsetWidth / offsetHeight (simple property access) 568,775 Ops/sec
offsetWidth / offsetHeight (destructured) 532,622 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 484,092 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: