Test name | Executions per second |
---|---|
find with tag selector | 960244.1 Ops/sec |
find with id | 1669693.1 Ops/sec |
<a id="parent" >
<span id="child">Need span</span>
<svg class="icon md-16 icon-shevron-right text-muted"></svg>
</a>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js'></script>
var $element = $("#parent");
$element.find("span");
$("#child");