Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Old MutationEvents performance
(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 a(c) { c && document.addEventListener('DOMNodeInserted', () => {}) for (let i = 100; i--;) { let element = b.cloneNode() document.body.appendChild(element) document.body.removeChild(element) } }
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; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Browser/OS:
Chrome 126 on Chrome OS 14541.0.0
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Normal
4046.4 Ops/sec
MutationEvents
35.1 Ops/sec
Related benchmarks:
clear html element children
Remove children
testtesttesttest
Clear Element content v4
replaceChildren vs textContent + append
Create versus clone element
Test remove node performance
Old MutationEvents performance 2
Comments
Confirm delete:
Do you really want to delete benchmark?