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
Go 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
Normal
3K/s
MutationEvents
2K/s
View exact numbers
Test name
Executions per second
✓
Normal
2,535 Ops/sec
MutationEvents
1,516 Ops/sec
Related benchmarks
replaceChildren vs textContent + append
Create versus clone element
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?