HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
insertBefore
3.5M/s
prepend
3.3M/s
View exact numbers
  • insertBefore: 3,516,458 ops/sec
  • prepend: 3,289,109 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
    insertBefore
    prepend

    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/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131 on Windows
View result in a separate tab
insertBefore
604K/s
prepend
143K/s
View exact numbers
Test name Executions per second
insertBefore 603,906 Ops/sec
prepend 143,486 Ops/sec