Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Old MutationEvents performance 2
(version: 1)
Comparing performance of:
Normal vs MutationEvents
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="b"></div>
Script Preparation code:
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>
Run tests (2)
Previous results
Fork
Test case name
Result
Normal
MutationEvents
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser/OS:
Firefox 136 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Normal
2535.5 Ops/sec
MutationEvents
1515.9 Ops/sec
Related benchmarks:
clear html element children
Remove children
testtesttesttest
replaceChildren vs textContent + append
Create versus clone element
Test remove node performance
Cost of adding and removing events
singular clone vs batch clone
Test (innerHTML, replaceChildren, remove, removeChild)
Comments
Confirm delete:
Do you really want to delete benchmark?