Script Preparation code:
AخA
 
const targetElem = document.createElement( 'DIV' );
targetElem.id = 'target';
document.body.appendChild( targetElem );
Tests:
  • innerHTML

     
    document.getElementById( 'target' ).innerHTML = `
        <div>
            <span>Child 4</span>
        </div>
    `;
  • insertAdjacentHTML

     
    document.getElementById( 'target' ).insertAdjacentHTML( 'beforeend', `
        <div>
            <span>Child 4</span>
        </div>
    ` );
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    innerHTML
    insertAdjacentHTML

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129 on Windows
View result in a separate tab
Test name Executions per second
innerHTML 220833.5 Ops/sec
insertAdjacentHTML 278060.0 Ops/sec