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)
684K/s
getBoundingClientRect() (destructured)
656K/s
offsetWidth / offsetHeight (destructured)
547K/s
offsetWidth / offsetHeight (simple property access)
539K/s
offsetWidth / offsetHeight (destructured and renamed)
533K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 683,961 Ops/sec
getBoundingClientRect() (destructured) 655,522 Ops/sec
offsetWidth / offsetHeight (destructured) 546,766 Ops/sec
offsetWidth / offsetHeight (simple property access) 539,493 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 533,455 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: