jquery remove vs js remove (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div>
  <div id="aa"></div>
  <div id="bb"></div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
js
var el = document.getElementById("aa");
el.parentNode.removeChild(el);
ready
jquery
$("#bb").remove();
ready

Revisions

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