HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
innerHtml
6.8M/s
empty
3.0M/s
html
1.8M/s

Fastest: innerHtml (3.7x faster)

View exact numbers
  • innerHtml: 6,781,123 ops/sec
  • empty: 2,986,316 ops/sec
  • html: 1,846,792 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
    empty
    html
    innerHtml

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
innerHtml
46.7M/s
empty
11.2M/s
html
5.3M/s
View exact numbers
Test name Executions per second
innerHtml 46,680,664 Ops/sec
empty 11,190,516 Ops/sec
html 5,346,480 Ops/sec