Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows
Desktop
2 years ago
Test name Executions per second
Offsets only 28534.2 Ops/sec
ComputedStyle only 30253.1 Ops/sec
Offset then computedStyle 13089.9 Ops/sec
ComputedStyle then offset 13104.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Offsets only

  • ComputedStyle only

  • Offset then computedStyle

  • ComputedStyle then offset


;