HTML Preparation code:
AخA
 
1
<div id="wrap"></div>
Tests:
  • DocumentFragment append

    x
     
    const fragment = new DocumentFragment();
    for (let i = 0; i < 1000; i++) {
      const element = document.createElement('p');
      fragment.appendChild(element);
    }
    document.querySelector("#wrap").appendChild(fragment);
  • (multiple) Node.append

     
    const list = [];
    for (let i = 0; i < 1000; i++) {
      const element = document.createElement('p');
      list.push(element);
    }
    document.querySelector("#wrap").append(...list);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    DocumentFragment append
    (multiple) Node.append

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121 on Android
View result in a separate tab
Test name Executions per second
DocumentFragment append 416.9 Ops/sec
(multiple) Node.append 211.3 Ops/sec