Tests:
  • With just append

    AخA
     
    var list = [],
        n = 0,
        node = document.createElement('div');
    while(true) {
        n++;
        node.append('asdf');
        if(n===100000) 
            break;
    }
  • createTextNode with clone

     
    var list = [],
        n = 0,
        node = document.createElement('div'),
        textNode = document.createTextNode('asdf')
    while(true) {
        n++;
        node.append(textNode.cloneNode(true));
        if(n===100000) 
            break;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    With just append
    createTextNode with clone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89 on Windows
View result in a separate tab
Test name Executions per second
With just append 19.1 Ops/sec
createTextNode with clone 15.0 Ops/sec