Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
insertAdjacentHTML (small)
9K/s
DOM Parser (small)
6K/s

Fastest: insertAdjacentHTML (small) (1.4x faster)

View exact numbers
  • insertAdjacentHTML (small): 8,553 ops/sec
  • DOM Parser (small): 6,067 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
    DOM Parser (small)
    insertAdjacentHTML (small)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137 on Windows
View result in a separate tab
insertAdjacentHTML (small)
15K/s
DOM Parser (small)
14K/s
View exact numbers
Test name Executions per second
insertAdjacentHTML (small) 14,848 Ops/sec
DOM Parser (small) 14,458 Ops/sec