Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
571K/s
getBoundingClientRect() (destructured)
567K/s
offsetWidth / offsetHeight (simple property access)
460K/s
offsetWidth / offsetHeight (destructured)
458K/s
offsetWidth / offsetHeight (destructured and renamed)
456K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 570,648 Ops/sec
getBoundingClientRect() (destructured) 567,194 Ops/sec
offsetWidth / offsetHeight (simple property access) 460,486 Ops/sec
offsetWidth / offsetHeight (destructured) 457,676 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 456,097 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: