HTML Preparation code:
AخA
 
1
<div id="b"></div>
Script Preparation code:
x
 
function e() {}
function a(c) {
    c && document.addEventListener('DOMNodeInserted', e)
    for (let i = 100; i--;) {
        let element = b.cloneNode()
        document.body.appendChild(element)
        document.body.removeChild(element)
    }
    c && document.removeEventListener('DOMNodeInserted', e)
}
Tests:
  • Normal

     
    a(false)
  • MutationEvents

     
    a(true)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Normal
    MutationEvents

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Linux
View result in a separate tab
Test name Executions per second
Normal 2535.5 Ops/sec
MutationEvents 1515.9 Ops/sec