Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Windows
Desktop
one year ago
offsetWidth / offsetHeight (destructured and renamed)
1.0M/s
offsetWidth / offsetHeight (destructured)
930K/s
getBoundingClientRect() (destructured)
924K/s
getBoundingClientRect() (simple property access)
898K/s
offsetWidth / offsetHeight (simple property access)
750K/s
View exact numbers
Test name Executions per second
offsetWidth / offsetHeight (destructured and renamed) 1,013,938 Ops/sec
offsetWidth / offsetHeight (destructured) 929,729 Ops/sec
getBoundingClientRect() (destructured) 924,097 Ops/sec
getBoundingClientRect() (simple property access) 897,569 Ops/sec
offsetWidth / offsetHeight (simple property access) 749,680 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: