HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 15 community runs

Desktop Results:
Chrome 15 runs
clientHeight
1.9M/s
getComputedStyle
913K/s

Fastest: clientHeight (2.1x faster)

View exact numbers
  • clientHeight: 1,884,350 ops/sec
  • getComputedStyle: 912,753 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    clientHeight
    getComputedStyle

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
clientHeight
29.4M/s
getComputedStyle
2.4M/s
View exact numbers
Test name Executions per second
clientHeight 29,352,466 Ops/sec
getComputedStyle 2,394,984 Ops/sec