HTML Preparation code:
Tests:

Historical Performance Data aggregated from 27 community runs

Desktop Results:
Chrome 27 runs
Using batching - grouping multiple DOM manipulations together
23K/s
Using multiple calls to host objects (DOM) v2
23K/s
Using multiple calls to host objects (DOM)
22K/s
View exact numbers
  • Using batching - grouping multiple DOM manipulations together: 22,839 ops/sec
  • Using multiple calls to host objects (DOM) v2: 22,668 ops/sec
  • Using multiple calls to host objects (DOM): 22,285 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
    Using multiple calls to host objects (DOM)
    Using batching - grouping multiple DOM manipulations together
    Using multiple calls to host objects (DOM) v2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Windows
View result in a separate tab
Using batching - grouping multiple DOM manipulations together
28K/s
Using multiple calls to host objects (DOM)
24K/s
Using multiple calls to host objects (DOM) v2
18K/s
View exact numbers
Test name Executions per second
Using batching - grouping multiple DOM manipulations together 27,534 Ops/sec
Using multiple calls to host objects (DOM) 23,890 Ops/sec
Using multiple calls to host objects (DOM) v2 18,202 Ops/sec