HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
window.innerWidth
3K/s
getComputedStyle
3K/s
View exact numbers
  • window.innerWidth: 2,873 ops/sec
  • getComputedStyle: 2,871 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
    getComputedStyle
    window.innerWidth

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Zaap3.6.8
Chrome 123 on Windows
View result in a separate tab
window.innerWidth
1.7M/s
getComputedStyle
898K/s
View exact numbers
Test name Executions per second
window.innerWidth 1,691,547 Ops/sec
getComputedStyle 897,651 Ops/sec