HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
computedStyleMap
12.8M/s
getComputedStyle
1.6M/s

Fastest: computedStyleMap (7.8x faster)

View exact numbers
  • computedStyleMap: 12,807,623 ops/sec
  • getComputedStyle: 1,633,346 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
    computedStyleMap

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Chrome 142 on Windows
View result in a separate tab
computedStyleMap
7.8M/s
getComputedStyle
1.2M/s
View exact numbers
Test name Executions per second
computedStyleMap 7,782,348 Ops/sec
getComputedStyle 1,234,720 Ops/sec