Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
one year ago
getBoundingClientRect() (destructured)
749K/s
getBoundingClientRect() (simple property access)
738K/s
offsetWidth / offsetHeight (destructured)
633K/s
offsetWidth / offsetHeight (simple property access)
623K/s
offsetWidth / offsetHeight (destructured and renamed)
588K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 748,778 Ops/sec
getBoundingClientRect() (simple property access) 738,110 Ops/sec
offsetWidth / offsetHeight (destructured) 633,222 Ops/sec
offsetWidth / offsetHeight (simple property access) 622,748 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 588,338 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: