insertAdjacentHTML-vs-innerHTML (v10)

Revision 10 of this benchmark created on


Preparation HTML

<div id="counter">
</div>
<script>counter = document.getElementById("counter");</script>

Teardown


    counter.innerHTML = "";
  

Test runner

Ready to run.

Testing in
TestOps/sec
insertAdjacentHTML
counter.insertAdjacentHTML('beforeend', '<span></span>');
 
ready
innerHTML
counter.innerHTML = '<span></span>';
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.