Script Preparation code:
AخA
 
var str = `<div>${Math.random().toString().slice(2)}</div>`;
var range = document.createRange();
var temp = document.createElement('template')
var res = '';
for(i=0; i<30000; i++){
    res += str
}
Tests:
  • createContextualFragment

     
    var t1 = new Date().now
    var test1 = range.createContextualFragment(res)
  • InnerHtml

     
    temp.innerHTML = res
    var test2 = temp.content
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    createContextualFragment
    InnerHtml

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 21 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
Test name Executions per second
createContextualFragment 42.8 Ops/sec
InnerHtml 35.7 Ops/sec